Gets or sets a value indicating whether code that you provide draws the menu item or Windows draws the menu item.
[Visual Basic] Public Property OwnerDraw As Boolean [C#] public bool OwnerDraw {get; set;} [C++] public: __property bool get_OwnerDraw(); public: __property void set_OwnerDraw(bool); [JScript] public function get OwnerDraw() : Boolean; public function set OwnerDraw(Boolean);
true if the menu item is to be drawn using code; false if the menu item is to be drawn by Windows. The default is false.
When the OwnerDraw property is set to true, you need to handle all drawing of the menu item. You can use this capability to create your own special menu displays.
MenuItem Class | MenuItem Members | System.WinForms Namespace