System.Windows.Forms.DrawItemEventHandler Class
Information   Base Types   Related Resources

Represents the method that will handle the DrawItem event of a ComboBox, ListBox, MenuItem , orTabControl control.

  • Namespace: System.Windows.Forms
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Windows.Forms.dll

  • System.MulticastDelegate
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (7)Discussions (14)MembersRotorChanges
    Articles

    Page: 1
    BUG: The ContextMenu Control That Is Associated with the NotifyIcon Component Is Not Displayed When You Set the OwnerDraw Property of Menu Items in the ContextMenu Control to True
    Microsoft Support
    (827043) - You set the OwnerDraw property of menu items in the ContextMenu control to true , and then you set ContextMenu and the Icon properties of the NotifyIcon component. When you run the Microsoft Windows application and then you right-click the Notify icon...
    ColorComboBox
    The Code Project
    Selecting colors with a combo box.
    DriveComboBox
    The Code Project
    Ownerdrawn ComboBox that dispays all logical drives with appropriate icon, volume name and drive letter.
    Owner Draw Combo Box
    C# Help
    In the case where visual part of the control needs to be handled from your program, you can achieve this by using the OwnerDraw property of the control.
    Owner Draw ListBox Control
    C# Corner
    In this article we will see how to write owner drawn ListBox control. Typically, Windows handles the task of drawing the items to display in the ListBox. You can use the DrawMode property and handle the MeasureItem and DrawItem events to provide the ability to override the automatic drawing that Windows provides and draw the items yourself. You can use owner-drawn ListBox controls to display variable-height items, images, or a different color or font for the text of each item in the list.
    Owner-draw ListBox Control
    C# Help
    In this article we will see how to write owner drawn ListBox control. Typically, Windows handles the task of drawing the items to display in the ListBox. You can use the DrawMode property and handle the MeasureItem and DrawItem events to provide the ability to override the automatic drawing that Windows provides and draw the items yourself. You can use owner-drawn ListBox controls to display variable-height items, images, or a different color or font for the text of each item in the list.
    Using Owner Draw to Make an Image List Box
    DevHood
    In this tutorial, we'll look at the example of a list box which draws images as items instead of text.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com