"Mike McIntyre" <
mikemc@getdotnetcode.com>wrote in message
Quote
Yes, you can drag and drop controls into a view.
Only one view can be visible at a time. This means that if you place
controls is say the third view from the top, when that view is visible
it's controls will appear at the top of the multiview - and if the
multiview is placed at the top of the page, that's were the views controls
will show.
Is this maybe what you are seeing?
--
Mike
Mike McIntyre [MVP]
www.getdotnetcode.com">www.getdotnetcode.com
Thanks Mike, the multiview selections works fine. I have a menubutton for
each view and clicking on the menu selects that view. I just cant put
anything except text into the views. No controls, etc. The multiview is at
the bottom of the document. I did not design the project with multiview in
mind but added in the multiview when it was apparant that tabs (or
multiview) would be best.
I attempted to bring up the Default.aspx.cs[Design] page and it failed with
these messages:
===========from the Design page========
Object reference not set to an instance of an object.
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.MergedCodeDomParser.System.CodeDom.Compiler.ICodeParser.Parse(TextReader
stream)
at System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
at
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)
======end of design=====
I did not have these error messages before adding the multiview and menu. I
then tried backtracking, removeing the views, multiviews, even the menu that
I added. I cannot get back to where the designer comes up. When I hit
rebuild, the project builds just fine, no errors. I do not see anything in
the above error to indicate how to fix the problem.. The designer page has
a couple of objects on it that I added and have not even used yet.
I just tried deleteing my DataSet1.xsd and that didnt help so I re-added it.
Looking at "Default.aspx.resx" that page has my pgSqlCommand1 and
pgSqlConnection1 Those were the two items I added to the designer page
which is not being displayed. I do not know what is going on. Previously
when the designed page failed to show up I saw a message about haveing a
class in the wrong place and that "_default" had to be the first class in
the project. I took out a small error class I had added at the top of the
Default.aspx.cs page and that fixed the problem and the pgSql connections
and commands showed up in the toolbox for the first time. Unaccountably, I
cannot get back to where I was before I started messing with the multiview
components.
Is there any way I can narrow down what is causing the problem? Since it
occures at design time I would assume that some static object like a
SqlConnection is no longer connected to a database and that is keeping the
page from coming up. If so, how do I delete "Default.aspx.cs [Design] so I
can start over. I cant delete Default.asps.cs as that has a lot of code.
Question: If I bring up my main page "Default.aspx" at the footer (of
VS2005 dev gui) I can selected between Design and Source. The Design at the
footer of VS2005 is a *DIFFERENT* design page than the one that is shown
when I select "Default.aspx.cs [Design]" at the header of VS2005. That
second "[Design]" page is the only page where I can add SqlCommands,
Connections, etc. I cannot add those widgets to the design page that has
GridView and SqlDataSource.
Quote
"Beemer Biker" <jstateson@swri.edu>wrote in message
news:12knq6n88ako26f@corp.supernews.com...
>Not sure what is going on. I added a multiview to my project and then
>dropped 4 views. I cannot put any controls from the toolbox onto any of
>the views. Instead they show up at the top of the document underneath
>the menu. Cutting and pasting existing panels and controls from my
>document into the views just puts them back where they came from. Typing
>into the view works fine. I can type anything I want, just cant drop
>any controls.
>
>Tell me I am doing something wrong. Surely I can drag and drop controls
>onto a view?
>
>Is there an idiot's guide to this madness? I had a bunch of grayed out
>controls in the toolbox and it took me two weeks to figure out that the
>first class in my dotnet program has to be "_default" and anything else
>grays out the designer widgets.
>
>
>--
>=======================================================================
>Beemer Biker joestateson at grandecom dot net
>TipsForTheComputingImpaired.com">TipsForTheComputingImpaired.com
>ResearchRiders.org">ResearchRiders.org Ask about my 99'R1100RT
>=======================================================================
>
-