O
Oddball
Ok - I have a ListBox control and I'm ready to write my own DrawItem event handler.
What I want to draw as the item is another control. I have created a user control that I
would like to list in this listbox but I can't for the life of me figure out how to draw the
control inside ListBox...
I get as far as:
private void lbImageList_DrawItem(object sender,
System.Windows.Forms.DrawItemEventArgs e)
{
// Set the DrawMode property to draw fixed sized items.
lbImageList.DrawMode = DrawMode.OwnerDrawFixed;
// Draw the background
e.DrawBackground();
// Now draw my control in there... umm....
e.
}
Help!
------------------------------------
Another unchecked rambeling brought to you by:
Oddball
joshua@bf#N0SP4M#wd.co.uk
What I want to draw as the item is another control. I have created a user control that I
would like to list in this listbox but I can't for the life of me figure out how to draw the
control inside ListBox...
I get as far as:
private void lbImageList_DrawItem(object sender,
System.Windows.Forms.DrawItemEventArgs e)
{
// Set the DrawMode property to draw fixed sized items.
lbImageList.DrawMode = DrawMode.OwnerDrawFixed;
// Draw the background
e.DrawBackground();
// Now draw my control in there... umm....
e.
}
Help!
------------------------------------
Another unchecked rambeling brought to you by:
Oddball
joshua@bf#N0SP4M#wd.co.uk