Listview Disappears

G

Guest

I have a listview control placed on a tabpage. The tabpage is the second one
on my tabcontrol. Sometimes when I click on this second tabpage, the
listview control is not visible. I am using vb.net 2005 for development.

What would cause the control to paint sometimes and not paint at other
times? I have looked and cannot seem to find the problem.
 
J

Jeff Gaines

I have a listview control placed on a tabpage. The tabpage is the
second one on my tabcontrol. Sometimes when I click on this second
tabpage, the listview control is not visible. I am using vb.net 2005
for development.

What would cause the control to paint sometimes and not paint at
other times? I have looked and cannot seem to find the problem.

I have a question, not an answer, sorry :)

I am seeing exactly the same behaviour with a variety of controls on
tab pages. If you select the control from the Combo in the properties
window does it appear in outline? Mine do, almost as if their z order
has changed. They show up OK when the app is run but it's a pain trying
to move/resize them in design mode.
 
G

Guest

I have determined that the problem is caused by calling the api's OpenIcon
and SetForeGroundWindow on the form that contains the tabcontrol when the
program is minimized to the system tray.

I don't know why OpenIcon or ShowWindow would cause the listview control to
act in this manner. Anyone with ideas?
 

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.

Ask a Question

Top