ALX
Well-known member
Pop up erases listbox below...???
I'm a newbie to VB.net & am using visual studio.net 2003. My project includes two forms that each contain a listbox...
------------------------
Me.ListBox1.DrawMode =
System.Windows.Forms.DrawMode.OwnerDrawFixed
------------------------
The data in the listboxes are created via a graphics object.
I have small pop up windows (another form class) that appear occasionally on top of the full screen forms that contain the listboxes. In one instance, moving the smaller window (dragging it with the mouse) wipes out the listbox display as if the smaller form were an eraser. (I am not using Listbox1.BeginUpdate prior to calling the pop up). Only information after the previously selected item gets erased. This occurs even if I clear the selected items before calling the pop up window. In another instance (different form & listbox) the listbox below gets refreshed around the same smaller pop up window as it is moved around. Both instances and listboxes appear to be identical except for the information that they convey. 'Not a big issue, but it really looks tacky.
..... Any ideas on how to keep my listbox intact ?
I'm a newbie to VB.net & am using visual studio.net 2003. My project includes two forms that each contain a listbox...
------------------------
Me.ListBox1.DrawMode =
System.Windows.Forms.DrawMode.OwnerDrawFixed
------------------------
The data in the listboxes are created via a graphics object.
I have small pop up windows (another form class) that appear occasionally on top of the full screen forms that contain the listboxes. In one instance, moving the smaller window (dragging it with the mouse) wipes out the listbox display as if the smaller form were an eraser. (I am not using Listbox1.BeginUpdate prior to calling the pop up). Only information after the previously selected item gets erased. This occurs even if I clear the selected items before calling the pop up window. In another instance (different form & listbox) the listbox below gets refreshed around the same smaller pop up window as it is moved around. Both instances and listboxes appear to be identical except for the information that they convey. 'Not a big issue, but it really looks tacky.
..... Any ideas on how to keep my listbox intact ?
Last edited: