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
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