Bring Up The WinForm Application

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

How can I bring up a WinForms application window among several other
windows?
I have tried Show() method, but it doesn't always work.

Thanks,
Alan
 
That will disturb other applications. I need to bring up the form up on
certain events and have the form minimised in normal situations.

Thanks,
Alan
 
Hi Alan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to bring up windows on certain
events and have it minimized in normal situations. If there is any
misunderstanding, please feel free to let me know.

Could we set the TopMost property to true at the beginning of certain event
and set it to false at the end or in another event handler when form
becomes inactive. Also we set it to minimized there.

this.TopMost = true;
this.WindowState = FormWindowState.Minimized;
//.....
this.TopMost = false;
this.WindowState = FormWindowState.Normal;

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top