Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Objects
Message
From
03/03/2000 03:35:18
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Creating Objects
Miscellaneous
Thread ID:
00341116
Message ID:
00341116
Views:
47
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!!!
Next
Reply
Map
View

Click here to load this message in the networking platform