By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

Bring Up The WinForm Application

P: n/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
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

Try setting the Form.TopMost property.

http://msdn.microsoft.com/library/de...pMostTopic.asp

Regards,
Vikram, S

"A.M" wrote:
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

Nov 16 '05 #2

P: n/a
A.M
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


"Vi*******@hotmail.com" <Vi*****************@discussions.microsoft.com>
wrote in message news:21**********************************@microsof t.com...
Hi,

Try setting the Form.TopMost property.

http://msdn.microsoft.com/library/de...pMostTopic.asp
Regards,
Vikram, S

"A.M" wrote:
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

Nov 16 '05 #3

P: n/a
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."

Nov 16 '05 #4

P: n/a
If you need only to bring up a form, you can use the Form BringToFront()
method.
Otherwise if you need a TopMost window that stay ever on top, you can use
the TopMost property ;)

HTH,
Mephiston

"A.M" <no*****@online.nospam> ha scritto nel messaggio
news:u6**************@tk2msftngp13.phx.gbl...
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

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.