|
-
Nov 10th, 2000, 04:40 PM
#1
Thread Starter
Frenzied Member
How can you reate a data type, such as Form or TextBox?
example:
Code:
Dim Object_To_Create As myObjectType
Set Object_To_Create As New myObjectType
Object_To_Create.Show
This data type should be a kind of ocx. Any ideas?
retired member. Thanks for everything 
-
Nov 10th, 2000, 04:46 PM
#2
Code:
Dim txt As TextBox
txt.Text = "New TextBox"
txt.ForeColor = vbBlue
-
Nov 10th, 2000, 04:54 PM
#3
Thread Starter
Frenzied Member
ummm...
I meant for my own ocx, a new data type
retired member. Thanks for everything 
-
Nov 10th, 2000, 04:57 PM
#4
transcendental analytic
Use createobject
Set newobject = CreateObject ( "Yourproject.Yourcontrol" )
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 10th, 2000, 05:01 PM
#5
Thread Starter
Frenzied Member
You said the CreateObject() had a Yourproject.YourControl
What is this?
I hope this isn't a question as stupid as it sounds!
retired member. Thanks for everything 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|