Source Code for Visual Basic 2012


  • Are you asking about creating control objects and adding them to an existing form?

    If so, the easiest way to see the code that creates controls and adds them to a form is to start a new Windows Forms project in Visual Studio, then add controls from the toolbox. Then look at the generated code in <your form name>.designer.vb or <your form name>.designer.cs, depending on the language you are using.

    If I've interpreted your question incorrectly, please clarify.

    Friday, March 29, 2013 2:09 AM