Visual Stadio IDE uses a dialog box to define format strings...
http://msdn2.microsoft.com/en-us/library/ms171572.aspx
Can I reuse that dialog box on my application? How?
I'have seen the dialog appers (at runtime) if I use a PropertyGrid control
point to a DataGridViewCellStyle... However, the "Format" property is just a
string.... I need the same behavior for a propery of a class I've done...
I've been looking around for hours... Any help apprecieted...
I've found the editor that I need is:
EditorTypeName: "System.Windows.Forms.Design.FormatStringEditor,
System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
However, I don't know what references I have to set.... I get an error
message telling me that 'The type is no defined'
Dim t As Type = GetType(Windows.Forms.Design.FormatStringEditor)
Please... may you check if that code works to you?
> Visual Stadio IDE uses a dialog box to define format strings...
>
[quoted text clipped - 8 lines]
>
> I've been looking around for hours... Any help apprecieted...
Dave Sexton - 05 Oct 2006 12:07 GMT
Hi Polonio,
You can't use that class because it's marked as internal to the assembly in which it's defined.
If you want to provide similar functionality you can write your own UITypeEditor implementation.
Implementing a UITypeEditor on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conimplementinguitypeeditor.asp?frame=true
Attach the editor to your property by adorning the property with an EditorAttribute.

Signature
Dave Sexton
> I've found the editor that I need is:
>
[quoted text clipped - 17 lines]
>>
>> I've been looking around for hours... Any help apprecieted...
Polonio - 05 Oct 2006 22:25 GMT
Humm.
That what I did not want to do...
Does anyone knows about a public control with that funcionality?
> Hi Polonio,
>
[quoted text clipped - 35 lines]
>>>
>>> I've been looking around for hours... Any help apprecieted...