by Amr Elsehemy
15. March 2008 05:11
In my tour in exploring GDI+ I explored the Brush object, now its time for some Pen stuff.
While the Brush classes are used to fill shapes, the Pen class is used to frame shapes. However, Pens are not only used for simple frames. Here in this post I show some advanced uses for the Pen. More...
by Amr Elsehemy
15. February 2008 08:01
One of the core classes in the GDI+ framework built in .Net is the Brush class. There are 5 types of Brushes in .Net that help you to color your objects by lot of variations the five types are as shown in the figure :
More...
by Amr Elsehemy
18. January 2008 11:15
In the previous post I gave a brief introduction on what is a UITypeEditor and what you can get from using it, this part I will show you how to implement one.
So here are the steps:
- Define a class that derives from System.Drawing.Design.UITypeEditor.
- Override GetEditStyle to return a supported UITypeEditorEditStyle.
- Override EditValue and pass any controls necessary to the IWindowsFormsEditorService.
- Override GetPaintValueSupported.
- Override PaintValue if the editor supports painting.
- Override IsDropDownResizable if the editor is resiazble.

Now we will go through the steps one by one, the example I will introduce here will be another ColorEditor, I will use the ColorWheel introduced and explained in this MSDN magazine article.
The final editor that we will make will look like this
More...