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.