Link to home
Start Free TrialLog in
Avatar of thatsthefactsjac
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
Avatar of SirNick
SirNick

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
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
emoreau is absolutely correct....that is the way u can set the default property
Avatar of thatsthefactsjac

ASKER

Thanks, so easy, yet works perfectly!