Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] User Control property question

$
0
0
I haven't did much in the way of creating user controls in the past but have decided to create a custom text box control to add to a few of my projects.
I have a property that is an integer and I want it to be able to have a few different values with a name associated with them in the properties window and am not quite sure how to do this.

For example if you have a regular textbox and click on the enabled property you get a drop down with True and False options in it
If you click on drag mode you get a drop down that has 0 - Manual and 1 - Automatic

I would like to be able to have a few of my custom properties have the drop down with true and false options and others with a list

Example
RestrictedEntry would drop down something like

0 - None
1 - Digits Only
2 - Dates Only
3 - A-Z

or something to that effect

I looked into the property page but that does not seem to do the job here

Any info would be helpful

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>