J
Jim H
I have a ListBox hold a list of my custom controls (it's UserControl based
control with a couple radio buttons and a checkbox). Everything works and
displays the way I expected it to. I can move through the list by dragging
the scroll bar and it works fine, but if I try to use the up/down scroll bar
buttons or page by clicking above or below the scroll thumb button the list
does not scroll.
Here's my OnDrawItem for the ListBox:
private void OnDrawItem(object sender,
System.Windows.Forms.DrawItemEventArgs e)
{
//m_PidList is a System.Windows.Forms.ListBox
e.DrawBackground();
((GaugeStyleSelect)m_PidList.Items[e.Index]).Bounds = e.Bounds;
//e.DrawFocusRectangle();
}
I don't normally do front end side code and was very pleased at how easy C#
made it, or so I thought.
Any ideas on what I'm missing?
Thanks,
jim
control with a couple radio buttons and a checkbox). Everything works and
displays the way I expected it to. I can move through the list by dragging
the scroll bar and it works fine, but if I try to use the up/down scroll bar
buttons or page by clicking above or below the scroll thumb button the list
does not scroll.
Here's my OnDrawItem for the ListBox:
private void OnDrawItem(object sender,
System.Windows.Forms.DrawItemEventArgs e)
{
//m_PidList is a System.Windows.Forms.ListBox
e.DrawBackground();
((GaugeStyleSelect)m_PidList.Items[e.Index]).Bounds = e.Bounds;
//e.DrawFocusRectangle();
}
I don't normally do front end side code and was very pleased at how easy C#
made it, or so I thought.
Any ideas on what I'm missing?
Thanks,
jim