Groups | Blog | Home
all groups > dotnet windows forms designtime > december 2004 >

dotnet windows forms designtime : Help with code generation


Slim Shady
12/4/2004 7:50:37 AM


I am experimenting with a code generator that creates form class code in
vb language using the codedom. I have successfully created a form file
(.vb) and when looking at the code everything looks just as the vb
designer would create it......however when I open it in VS none of the
controls show up, they only show up when running. I am new to the
codedom so I suppose I must be leaving something out. Am I missing
something here....any ideas are appreciated.

*** Sent via Developersdex http://www.developersdex.com ***
joeycalisay
12/6/2004 9:50:19 AM
Form Designer by default looks for the InitializeComponent block and
executes it. If the controls are added to the form's constructor, it will
not be executed at design time. Browse this article:

http://www.urbanpotato.net/Default.aspx/document/1772


[quoted text, click to view]

AddThis Social Bookmark Button