|
-
April 16th, 2010, 07:56 AM
#1
Limit the value of a property in Toolbox
Hi all,
somehow it is possible to limit the value of a property in the toolbox. For example if one tries to enter a negative number for tabindex you get a message.
I am interested in using this feature but can not find how to do this. Is there a special attribute or trick for this?
thx,
Jef
-
April 16th, 2010, 12:26 PM
#2
Re: Limit the value of a property in Toolbox
Inherit from the control and limit the properties as needed.
If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.
Yes; I have a blog too - http://the-angry-gorilla.com/
-
April 18th, 2010, 02:58 PM
#3
Re: Limit the value of a property in Toolbox
Well, my question remains: how can the limiting be done? Normally I use exceptions but this does not work for the designer is there some other trick?
thank you, Jef
-
April 19th, 2010, 02:12 AM
#4
Re: Limit the value of a property in Toolbox
I think you have to use your own type converter for the property, but easier way could exist.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|