Thanks
Bill
You may try specifying a Type Converter class for your property,
here is a quick sample shows how to do this, for simplicity I defined a
Property in Font type, you may add this code snippet to a user control then
add the user control to the Form, now the MyFont property displays a string
returned from Font.ToString() and a button with "...", you may edit the
value using Font Dialog but the text field of the property is not editable.
<code>
[
TypeConverter(typeof(TypeConverter))
]
public Font MyFont
{
get
{
return this.Font;
}
set
{
this.Font = value;
}
}
<code>
Does it resolve your probem?
Feel free to reply this thread if you have anything unclear about it.
Have a nice day!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.