One way to do this is to set
this.listBox1.DrawMode = DrawMode.OwnerDrawFixed;
and use the DrawItem ebvent to draw the contents of the listbox
yourself.
if (!lastRectangle.IsEmpty)
{
this.listBox1.Invalidate(lastRectangle);
lastRectangle = Rectangle.Empty;
this.listBox1.Update();
}
lastRectangle = e.Bounds;
}
===============
Clay Burch
Syncfusion, Inc.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.