all groups > dotnet windows forms designtime > october 2006 >
You're in the

dotnet windows forms designtime

group:

Format String editor at runtime


Format String editor at runtime Polonio
10/4/2006 12:00:00 AM
dotnet windows forms designtime:
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...

Re: Format String editor at runtime Polonio
10/4/2006 11:29:40 PM

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?



"Polonio" <polonio@yahoo.com> escribió en el mensaje
news:etm0wS45GHA.2044@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

Re: Format String editor at runtime Polonio
10/5/2006 12:32:45 AM
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...




"Chris Taylor" <chris_taylor_za@hotmail.com> escribió en el mensaje
news:u6o0jNA6GHA.3836@TK2MSFTNGP06.phx.gbl...
[quoted text, click to view]

Re: Format String editor at runtime Chris Taylor
10/5/2006 1:20:51 AM
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.

--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor
[quoted text, click to view]

Re: Format String editor at runtime Peter Thornqvist
10/27/2006 10:38:06 PM
[quoted text, click to view]

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.

--
Regards, Peter

AddThis Social Bookmark Button