Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Control

Status
Not open for further replies.

rltw

Mechanical
Joined
Sep 11, 2006
Messages
52
Location
US
When I'm defining custom properties on a custom control - how do I define a custom property w/ only limited, defined options . For example, I have a custom control that displays an I/O channel state... one of the properties is "Channel Direction", which I have set as a boolean right now. When false it's an output channel - when true it's an input channel. I'd like to give the property a dropdown, like what other standard controls have, with the two (Input, Output) values as the only options.

I'm using VB2005 and I've only been programming a few months - so any advice will be greatly appreciated!
 
If it was VB6, I'd use a select between an indexed Option controls. Set defaults as Option1(0).Value = True and Option1(1).Value = False. When you select one, the other deselects, if both Options are contained in the same Frame.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top