thatsthefactsjac
asked on
default property
Is there a way to set the default property for an ActiveX control I have created?
ie. I can set a Textbox's Text Property simply using:
Text1 = "Hello World"
or a Label's Caption Property by
Label1 = "Hello World"
Thanks
ie. I can set a Textbox's Text Property simply using:
Text1 = "Hello World"
or a Label's Caption Property by
Label1 = "Hello World"
Thanks
Not quite sure what you mean, could you explain a bit more.
Yes, use your class builder and set a property as the default (it's an option in the class builder. And yes you can use it for your usercontrol)
Note: being that VB.NET will not support default members, I would not recommend you create one.
Hope this helps.
Dave
Note: being that VB.NET will not support default members, I would not recommend you create one.
Hope this helps.
Dave
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
emoreau is absolutely correct....that is the way u can set the default property
ASKER
Thanks, so easy, yet works perfectly!