Forms designer hangs when control added (combobox or listbox so far)

N

no

hi.
i've searched everywhere for an answer to this problem, and the closest
thing i've found is a report from someone else with the same problem.

using vb.net, ver 2003. this happened before installing the latest .net
framework update and after.

i have a simple windows forms app. a couple of forms, using textboxes,
tabgroups, labels, and buttons...nothing complex.
i try adding a combobox control to this form, and the IDE hangs
indefinitely (need to end task it).

the first time i had this problem was a couple of months ago with a
larger, more complex application... i had created some custom controls
that inherited from some of the base windows.forms controls, and was
having all sorts of fun with the designer not being able to "get it",
refusing to render forms, hanging if it did manage to open a form, and
so on.
the visual inheritance problem was easily fixed by simply building the
project, though i still had to be careful what controls i selected on a
form in design time in case it hung.
since then i've tried to do as much "visual" stuff as possible in the
code view, but i've encountered this again and can't get to the bottom
of it.

i've just run another vs.net process and attached the debugger to my
hanging one. i've noticed that the hanging occurs when i move the mouse
off the form (say, over to the properties dock) but having said that
i've previously noticed that the hang happens after a small period of
time, no matter what you do with the mouse.
so yeah, i've got a nice bit of disassembled code that's stuck in a
loop, details:

Address:
System.Windows.Forms.NativeWindow.Callback
(^this is what's looping)
it calls:
System.Windows.Forms.Message.Create
returns to NativeWindow.Callback, then calls:
System.Windows.Forms.Design.ControlDesigner.ChildSubClass.WndProc
which calls:
System.Windows.Forms.Design.ControlDesigner.get_DesignerTarget
System.Windows.Forms.Design.ControlDesigner.set_DesignerTarget


does anyone have any ideas? any pointers in the right direction would
help a lot! TIA :)
 

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

Top