[newbie]cant drop controls onto multiview

B

Beemer Biker

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
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================
 
M

Mike McIntyre

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?
 
B

Beemer Biker

Mike McIntyre said:
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]
http://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.
 
B

Beemer Biker

Beemer Biker said:
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.

Two problems went away, one didnt even exist.

1. Selecting a view to drop a control does not cause the control to go
there. It appears at the top of the document and then I move it over the
view. I would have thought it would drop into the view (like a control
surface) and the view would expand to where the stuff I dropped in would
fit. I had to press return until the view got big enough then when I
positioned all the (existing) controls over the view they were hidden until
enabled. They were not attached to the surface of the view like I thought.

2. I had to delete Default.aspx.resx before the component designer would
come back up. This fixed whatever was causing this compile time error
message: "Object reference not set to an instance of an object".. The
object was never identified and I had no clue which one was causing the
problem so I just deleted that resx file and did a web site rebuild.
Possibly I had something in the .res file that had been deleted in the other
code pages????

The following is all that was shown and it appears the instant I selected
the component designer.

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)

Anyway deleting that resx file fixed problem. The component designer came
up and I could add in the tools I need.

--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top