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 / .NET Framework / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Format String Dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Polonio - 04 Oct 2006 07:57 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'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...
Polonio - 04 Oct 2006 22:28 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 - 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...

Rate this thread:







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.