MSVDM messing up dynamic TabControl?

J

Jon Shemitz

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?
 
M

Mick Doherty

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

Mick Doherty

I'm not seeing the problem here.

My System:
WinXP Home with all available updates
VS2003
 
J

Jon Shemitz

Mick said:
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.
 
M

Mick Doherty

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

Jon Shemitz

Mick said:
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.
 
M

Mick Doherty

Jon Shemitz said:
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.
 

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