This documentation is archived and is not being maintained.

BitmapEditor Class

Provides a user interface for selecting bitmap files in a properties window.

For a list of all members of this type, see BitmapEditor Members.


[Visual Basic]
Public Class BitmapEditor
   Inherits ImageEditor
public class BitmapEditor : ImageEditor
public __gc class BitmapEditor : public ImageEditor
public class BitmapEditor extends ImageEditor

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


BitmapEditor provides a simple way to select a bitmap image for a property. Starting the editor displays an open file dialog box that allows directory navigation and selecting a file. The file list is initially filtered for bitmap (.bmp) files.


[Visual Basic, C#, C++] The following code example uses an EditorAttribute to associate the System.Drawing.BitmapEditor with a property.

[Visual Basic] 
<EditorAttribute(GetType(System.Drawing.Design.BitmapEditor), _
    GetType(System.Drawing.Design.UITypeEditor))> _
Public Property testBitmap() As Bitmap
        Return testBmp
    End Get
    Set(ByVal Value As Bitmap)
        testBmp = Value
    End Set
End Property

Private testBmp As Bitmap

public Bitmap testBitmap
        return testBmp;
        testBmp = value;
private Bitmap testBmp;

   [EditorAttribute(__typeof(System::Drawing::Design::BitmapEditor), __typeof(System::Drawing::Design::UITypeEditor))]
   __property Bitmap* get_testBitmap() {
      return testBmp;
   __property void set_testBitmap(Bitmap* value) {
      testBmp = value;

   Bitmap*  testBmp;

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.Drawing.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing.Design (in System.Drawing.Design.dll)

See Also

BitmapEditor Members | System.Drawing.Design Namespace