flicker when toggling btwn child forms

J

Jesse Aufiero

I have an MDI application with two maximized child forms. At any given time
only one of the child forms is in the foreground and visible. To alternate
between the two child forms, I can type Ctrl-Tab. This results in a
seamless toggling between the two forms - no flickering.

However, when I attempt to use my own code to toggle between the two forms
(the user clicks a menu Window>>Child1 or Window>>Child2 to fire this code),
I get a choppy transition. There is a flicker and the form that was in the
background can be seen in its 'restored' state before it is maximized and
brought fully to the foreground. I am using the BringToFront method of the
child forms to accomplish the toggling.

How can I write code that does not result in a flicker, but rather behaves
like typing Ctrl-Tab??

Thanks!
 
G

Guest

This will sound crude <g> but would sending the Ctrl-Tab key codes work?

Randall Arnold
 

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