How can you reate a data type, such as Form or TextBox?
example:
This data type should be a kind of ocx. Any ideas?Code:Dim Object_To_Create As myObjectType
Set Object_To_Create As New myObjectType
Object_To_Create.Show
Printable View
How can you reate a data type, such as Form or TextBox?
example:
This data type should be a kind of ocx. Any ideas?Code:Dim Object_To_Create As myObjectType
Set Object_To_Create As New myObjectType
Object_To_Create.Show
Code:Dim txt As TextBox
txt.Text = "New TextBox"
txt.ForeColor = vbBlue
I meant for my own ocx, a new data type
Use createobject
Set newobject = CreateObject ( "Yourproject.Yourcontrol" )
You said the CreateObject() had a Yourproject.YourControl
What is this?
I hope this isn't a question as stupid as it sounds!