Hello all,
assume I have this code:
<Editor(GetType(Editors.IntegerUITypeEditor),
GetType(System.Drawing.Design.UITypeEditor))> _
Public Property MyIntegerValue() As Integer
'...
End Property
This means that I have my own personalized IntegerUITypeEditor that inherits
from UITypeEditor.
Now, instead, assume I have the following code:
<RangeAttribute(0,360), Editor(GetType(Editors.IntegerUITypeEditor),
GetType(System.Drawing.Design.UITypeEditor))> _
Public Property MyIntegerValue() As Integer
'...
End Property
This means that I have a personalized numeric editor (IntegerUITypeEditor)
AND a personalized attribute (RangeAttribute) that just holds a min and a
max value.
The question is: how can I read, from within IntegerUITypeEditor the values
(min and max) of a RangeAttribute when are both associated to the same
property?
Thank you
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications)
carlodevREMOVE@gmail.com
Atul - 10 Nov 2005 13:32 GMT
The EditValue method of your IntegerUITypeEditor will be passed a
ITypeDescriptorContext object. Use the PropertyDescriptor property and then
the Attributes property to get to the RangeAtrribute.
----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------
> Hello all,
>
[quoted text clipped - 32 lines]
> Carlo, MCP (Windows Based Applications)
> carlodevREMOVE@gmail.com
Carlo - 11 Nov 2005 08:15 GMT
Hi Atul
thank you for your suggestion. It seems to be very useful to me. I'm going
to try right now.
Thank you once more.
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications)
carlodevREMOVE@gmail.com
> The EditValue method of your IntegerUITypeEditor will be passed a
> ITypeDescriptorContext object. Use the PropertyDescriptor property and
[quoted text clipped - 45 lines]
>> Carlo, MCP (Windows Based Applications)
>> carlodevREMOVE@gmail.com