Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Custom Control

Custom Control

Custom Control

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!

RE: Custom Control

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close