Main form sent to back when child is hidden

  • Thread starter Thread starter av
  • Start date Start date
A

av

Hi,

I have a form A that shows and hides a form B.
B's owner is set to A. B is modeless so allowing interaction with
A in the background. I have a double-click event that selects an item
in B and hides it. Sometimes, the double click causes the main form to
be sent to the back of all apps currently running, causing great
confusion. You have to alt-tab to get it back.

I can't reproduce this bug on demand. Does anyone have any ideas on
this?

regards

avner
 
thanks for the idea. I have modified your example slightly because I
don't want my parent form to be topmost of all apps. So in the event
handler on the parent form I did the following

this.Show();
this.BringToFront();

....and it seems to work!

thanks again

av
 
Back
Top