Re: Custom TypeConverter for PointF, SizeF, RectangleF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



That's a question I'd often asked myself. A type converter is pretty easy to
write. I think I have one somewhere.

I'll dig it out later today and put it up on the Windows Forms Tips and
Tricks site. I suggest you subscribe to the RSS feed on there for
notification.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"JJJ" <JJJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:435C0D05-A886-4C45-A3F5-D1CABD802123@xxxxxxxxxxxxxxxx
> Is it possible to assign a TypeConverterAttribute to an existing .NET
> Framework class or structure? For example Point has a TypeConverter
> called
> PointConverter but the framework does not have a PointFConverter for
> PointF.
> Why does the framework not have these TypeConverters?


.



Relevant Pages

  • Re: Not-Installed-fonts question
    ... OS Name Microsoft Windows XP Professional ... using framework 1.1SP1 loads System.Drawing version 1.0.3705.6018 which as ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... my font objec looks fine. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: gdip exception
    ... Bob Powell [MVP] ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Obviously I'm supposing that a fresh install of the framework doesn't ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: overriding the Size property in Control?
    ... > Oh sorry - I forgot to tell that I'm writing an application for the ... > Framework and it doesn't support 'OnSizeChanged' so my question is still ... >> Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Zero Width Pen Draws through clipped region...
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Exclude the rectangle from the graphics clip region. ... IF you use a pen that is more than one pixel the clipping works ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Partial zooming using transform
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Is there any "good way" of figuring out the dimensoions of the transformed image to get the size of the border I need to draw? ... the "object" will be a square or a slice of pixels with its own individual zoom and transform. ...
    (microsoft.public.dotnet.framework.drawing)