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.

--
Danny

Re: Listview Disappears by Jeff

Jeff
Sun May 07 17:27:11 CDT 2006

On 07/05/2006 Danny wrote:

> 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.

--
Jeff Gaines

Re: Listview Disappears by Danny

Danny
Sun May 07 18:08:02 CDT 2006

Everything looks fine in the design mode. My problem is at run time.

--
Danny


"Jeff Gaines" wrote:

> On 07/05/2006 Danny wrote:
>
> > 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.
>
> --
> Jeff Gaines
>

RE: Listview Disappears by Danny

Danny
Sun May 07 20:41:01 CDT 2006

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?


--
Danny


RE: Listview Disappears by Danny

Danny
Mon May 08 18:24:01 CDT 2006

I have packaged up a sample project for microsoft to review.
--
Danny