Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / October 2006

Tip: Looking for answers? Try searching our database.

Format String editor at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Polonio - 04 Oct 2006 08:07 GMT
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...
Polonio - 04 Oct 2006 22:29 GMT
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...
Peter Thornqvist - 27 Oct 2006 21:38 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.