Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS 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
Sep 11, 2006
52
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!
 
Replies continue below

Recommended for you

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