954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Set Windows Form on Top of Every application using C#

Dear Friend,

I have one Window From it will open on clicking on ToolStrip button, UserControl1.cs contain ToolStrip (ToolStrip used as IE ToolBar).
Form contain One TextBox and One close Button, I need to open a Form on every new IE window open and keep that Form on IE Only and countinous Focus set in Textbox only.

currently Form is open on IE, but on opening of other application or other IE tab it hide behind, so not shown to user.

Plz. give ur suggestion for the same.

Thanks
Chirag

chiragwebmyne
Newbie Poster
5 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Hi,

try this

this.TopMost = true;

Hope this help.
Camilo

camilojvarona
Junior Poster in Training
89 posts since Jul 2008
Reputation Points: 10
Solved Threads: 10
 

Dear Camilo

Thanks for Reply ti's work for me here.
Bbut My situation is that i have to open this form for every IE or every IE tabs and the contorl must be top on for opend IE. not for other IE.

Thanks
Chirag

chiragwebmyne
Newbie Poster
5 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

keep your opened forms in a collection ...whenever you open a new form...set topmost=false for every other form in collection

rameez420
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You