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 wuold like the user could format a datagrid view column using a
PropertyGrid Control...
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 - 4 lines]
> I wuold like the user could format a datagrid view column using a
> PropertyGrid Control...
Chris Taylor - 04 Oct 2006 23:20 GMT
Hi,
The second component of the type name indicates that you require a reference
to the System.Design assembly. However, that type is declared as internal
and can therefore not be used from your code, not directly anyway.

Signature
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor
>
> I've found the editor that I need is:
[quoted text clipped - 18 lines]
>> I wuold like the user could format a datagrid view column using a
>> PropertyGrid Control...
Polonio - 04 Oct 2006 23:32 GMT
However, if a declare a variable as DatagridCellStyle, and I use a
PropertyGrid, the FormatStringEditor can be used from inside my
application...
Why can't I use it to edit another string variable?...
Any way, there exists an "indirect"way to use that editor?
Thanks for the answer...
> Hi,
>
[quoted text clipped - 25 lines]
>>> I wuold like the user could format a datagrid view column using a
>>> PropertyGrid Control...
> Can I reuse that dialog box on my application? How?
Wouldn't it be extremely simple to construct one yourself? It isn't exactly
rocket science and you have the added benefit of being able to customize it
for your own needs.

Signature
Regards, Peter