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

Provides data for the DrawItem event.

  • 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.EventArgs
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (12)Discussions (84)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...
    ComboBox With Images
    C# Help
    There is no built in support for a ComboBox with images. So i created a simple ComboBoxEx class that derives from ComboBox and allows you to set the ComboBoxEx.ImageList property and ComboBoxExItem.ImageIndex property so that the ComboBox displays an image.
    Controls and Icons a la .NET
    MSDN
    In this article Dr. GUI discusses building ASP.NET user controls and building your own deriviative of MenuItem that allows you to add icons to menu items in your Windows Forms applications.
    DriveComboBox
    The Code Project
    Ownerdrawn ComboBox that dispays all logical drives with appropriate icon, volume name and drive letter.
    Implementing an Owner Draw ComboBox
    The Code Project
    First thing to do is drop a ComboBox onto a form and change it's DrawMode property to OwnerDrawFixed. This will mean that all the items appearing in the ComboBox will have the same dimensons. If you're going to draw items in the ComboBox that are of variable sizes then you would change the property to OwnerDrawVariable and be forced to deal with a MeasureItem event.
    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.
    OwnerDraw Menu Items in C#
    C# Help
    Windows applications, which focuses mainly on its GUI aspects , can make use of the ownerdraw properties of the various forms components. Once such component that allows us to define our own drawing and painting of items is the Menu component of Windows Forms.
    SharpListView
    The Code Project
    Fast and easy C# owner-drawn ListView
    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.
    VSNetComboBox - a Flat ComboBox
    The Code Project
    An ownerdraw combobox that resembles the ones in Visual Studio .NET.
    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