tags:

views:

240

answers:

4

what is powerfull way to force a form to bring front of all the other applications using windows c# application ??

+3  A: 

Set Form.TopMost to true

RRUZ
i already tried using Topmost = true. But still some third party applications are overriding this form and due to this my form is staying behind. The purpose of usisng this form is to block the user the view other applications.
Anuya
Well, in response to that statement about other apps overriding the form. Maybe you could do a little research to find out "how to override Topmost = true" or "how to override this.bringToFront();" in C#... Maybe that's how these third-party apps do it.My logic is... If you do it the same way as them - you should be able to bring your form to the front, because you'll be overriding their too.
baeltazor
+10  A: 

Powerfully force the user to click on your application window icon in the task-bar.

1800 INFORMATION
Nope, the form show up automatically in order to block the user, so it shud be done on its own without any clicking,
Anuya
+1 For noting User-friendly tenet #1! :D
jrista
+2  A: 

this.BringToFront();

It works good for me.

baeltazor
This needs to be made into code (in Markup, I mean).
Maxim Zaslavsky
thanks for the reminder. done.
baeltazor
A: 

Use SetWindowsPos() api function

Anuya