I have a TabControl (named Tabs) that shows search results. When the
result set changes, I do Tabs.Controls.Remove() to remove all but the
first TabPage, then I (maybe) create new TabPage-s. Works fine -
except when I switch desktops with MSVDM and then come back: Then,
next time I delete / recreate, I only get the tab buttons for the new
pages. Clicking the button hides the first tab, but then the new tab
never comes up. (I can bring up the first (non-dynamic) tab, but not
any of the others.)

I've tried various things, like setting EVERY property that the form
designer sets and/or explicitly disposing of the tab pages (and their
controls) instead of just Remove()ing them. Haven't found the ticket,
yet, and Google turns up nothing.

Are there known issues with the TabControl (or z-order in general) and
MSVDM? Work-arounds?

--

programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs

Re: MSVDM messing up dynamic TabControl? by Mick

Mick
Fri Jul 16 07:54:09 CDT 2004

I'm not seeing this behaviour.
Can you reproduce it in minimal code and post it?

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Jon Shemitz" <jon@midnightbeach.com> wrote in message
news:40F76479.5980EBA2@midnightbeach.com...
> I have a TabControl (named Tabs) that shows search results. When the
> result set changes, I do Tabs.Controls.Remove() to remove all but the
> first TabPage, then I (maybe) create new TabPage-s. Works fine -
> except when I switch desktops with MSVDM and then come back: Then,
> next time I delete / recreate, I only get the tab buttons for the new
> pages. Clicking the button hides the first tab, but then the new tab
> never comes up. (I can bring up the first (non-dynamic) tab, but not
> any of the others.)
>
> I've tried various things, like setting EVERY property that the form
> designer sets and/or explicitly disposing of the tab pages (and their
> controls) instead of just Remove()ing them. Haven't found the ticket,
> yet, and Google turns up nothing.
>
> Are there known issues with the TabControl (or z-order in general) and
> MSVDM? Work-arounds?
>
> --
>
> programmer, author http://www.midnightbeach.com
> and father http://www.midnightbeach.com/hs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Re: MSVDM messing up dynamic TabControl? by Mick

Mick
Fri Jul 16 16:07:30 CDT 2004

I'm not seeing the problem here.

My System:
WinXP Home with all available updates
VS2003

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Jon Shemitz" <jon@midnightbeach.com> wrote in message
news:40F81F12.50B49BBB@midnightbeach.com...
> Mick Doherty wrote:
>
> > Can you reproduce it in minimal code and post it?
>
> Attached.
>
> --
>
> programmer, author http://www.midnightbeach.com
> and father http://www.midnightbeach.com/hs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Re: MSVDM messing up dynamic TabControl? by Jon

Jon
Fri Jul 16 16:45:25 CDT 2004

Mick Doherty wrote:

> I'm not seeing the problem here.

Interesting. We have similar systems (XP Pro). I suppose it COULD be a
driver issue of some sort ....

I did have to { cycle through the desktops ; cycle the tabs } repeat a
few times. Once it started failing, it failed consistently.

--

programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs

Re: MSVDM messing up dynamic TabControl? by Mick

Mick
Sat Jul 17 04:36:46 CDT 2004

I just tried it out on my laptop which has XP Pro, VS2003 & VB2005 Express
Beta1.
Again I see no problem. I cycled through Desktops and tabs around 20 times
on both systems.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Jon Shemitz" <jon@midnightbeach.com> wrote in message
news:40F84C75.A8DA7180@midnightbeach.com...
> Mick Doherty wrote:
>
> > I'm not seeing the problem here.
>
> Interesting. We have similar systems (XP Pro). I suppose it COULD be a
> driver issue of some sort ....
>
> I did have to { cycle through the desktops ; cycle the tabs } repeat a
> few times. Once it started failing, it failed consistently.
>
> --
>
> programmer, author http://www.midnightbeach.com
> and father http://www.midnightbeach.com/hs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Re: MSVDM messing up dynamic TabControl? by Jon

Jon
Sat Jul 17 11:47:41 CDT 2004

Mick Doherty wrote:

> I just tried it out on my laptop which has XP Pro, VS2003 & VB2005 Express
> Beta1.
> Again I see no problem. I cycled through Desktops and tabs around 20 times
> on both systems.

Well, thanks for trying. Just to be clear: the problem is not that the
dynamic tabs don't get created; the problem is that when you click on
the tab buttons, the tabs don't come up. If they consistently come up
for you (after much more exercise than it takes to create the problem
on my system) I ... don't know what to conclude. The problem is very
real, here, and ... probably ... will exist on other people's systems.

--

programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs

Re: MSVDM messing up dynamic TabControl? by Mick

Mick
Sat Jul 17 15:26:33 CDT 2004

"Jon Shemitz" <jon@midnightbeach.com> wrote in message
news:40F9582D.12E6671C@midnightbeach.com...
>
> Well, thanks for trying. Just to be clear: the problem is not that the
> dynamic tabs don't get created; the problem is that when you click on
> the tab buttons, the tabs don't come up.
>

Yes, I understood that, but it's not a problem here.
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Re: MSVDM messing up dynamic TabControl? by Jon

Jon
Sun Jul 18 00:26:29 CDT 2004

> Yes, I understood that, but it's not a problem here.

OK, thanks again.

--

programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs