By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,348 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Debugging "form designer" code,

P: n/a
Hi,
I have a problem with my code (somewhere in the InitialiseComponent)
preventing any of my controls being visible in form design mode, although
everything is ok at runtime. No errors are produced when I view the form in
the designer; it just presents me with a blank form. Some of the controls
are listed in the properties list, others aren't. What kind of things can
cause this effect and how can I debug it, given that the VS form designer is
"executing" the new() and InitialiseComponent() on my object, rather than
the debugger?
Thanks,

Robin
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Robin Tucker" <id*************************@reallyidont.com> schrieb:
I have a problem with my code (somewhere in the InitialiseComponent)
preventing any of my controls being visible in form design mode, although
everything is ok at runtime. No errors are produced when I view the form
in the designer; it just presents me with a blank form. Some of the
controls are listed in the properties list, others aren't. What kind of
things can cause this effect and how can I debug it, given that the VS
form designer is "executing" the new() and InitialiseComponent() on my
object, rather than the debugger?


Make sure that all controls are added to the form's 'Controls' collection or
containers' 'Controls' collections in 'InitializeComponent'
('*.Controls.Add'/'*.Controls.AddRange').

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.