Visual programming is the art of DRAWING an object and manipulating its properties. This is very easy to do. But, how about if I wanted to create a form and put some objects using pure VB code. Instead of adding a new FORM to my project I would like to just add a MODULE instead and write code.
In VFP we use the CREATEOBJECT function like this:
MyForm=CREATEOBJECT("FORM")
"FORM" is the class of the object I want to create. Then I use the following to show the form.
MyForm.Visible=.t.
This shows a form on the upper left region of the screen. I can then add objects to MyForm and show it using the following.
MyForm.AddObject("MyTextBox","TextBox")
MyForm.MyTextBox.Visible=.t.
This will put a textbox on the upper left corner of MyForm.
I would like to know how this is done using VB.
Thanx!
Shit happens!!!