Windows Develop Bookmark and Share   
 index > Windows Forms General > Forms Minimizing automatically
 

Forms Minimizing automatically

Hello,
I am in a situation wherein I am opening a form, from that form I open another form and hide the previous form by doing Me.Opacity=0. Similarly I might keep on chaining into forms. I have noticed that randomly, when I close the child form, (and set the parent Opacity to 100%) all my forms get minimized and the focus moves on to something else.
It is very surprising to see this effect. You close a child form and the next thing you see is Microsoft Outlook or some other application window.
Is there a reason why this is happening? Is it becasue of the opacity? or is it some bug in .NET
Kindly help me on this
MigrationUser 1  Wednesday, May 28, 2003 2:46 PM
Better use the form.Show() and form.Hide() methods. You don´t need to change the opacity!
MigrationUser 1  Friday, May 30, 2003 3:59 AM
Are you setting the opacity of the parent back to 100%, in the child closed event or the clild closing event. 

I would think if you are doing it by the closed event then it maybe to late because the parent form is unable to receive focus by the time windows wants to set an active window.

I would think that if you are doing this in the closing event that it should work.

Just a though, HTH.
MigrationUser 1  Friday, May 30, 2003 8:57 AM
I am curious as to why you are hiding forms via the opacity property... Why not simply use the Hide method?
MigrationUser 1  Friday, May 30, 2003 11:08 AM

You can use google to search for other answers

Custom Search

More Threads

• Using .Focus();
• Combobox dynamic text update issue on SelectedIndexChanged event handler
• Icon codec
• Locating and adding controls to panel at run time
• Validating TextBox
• Application causing win2000 server to crash?
• convert string to MailMessage
• Ambiguos error...
• Win32_printjob copy count not available
• Security Update for Microsoft .NET Framework, Version 2.0 (KB928365) and localized forms problem