Unfocused Stay-On-Top Form, when showing from a diffreant thread..

G

Guest

I would like develop Form on my Windows Application, that is going to notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows.Forms.Form and show it on a different then
main thread on my application, this new form became focused, but I want that
new form at the beginning acts like just stay-on-top notification… also in
this form I would like have controls, that could be focused, when users click
it, like, LinkLabel (so it couldn’t be just ToolTip, or something like this)…
Could I create such a Form, that wont be take focus, when I showing it in
c#...
 
N

Nicholas Paldino [.NET/C# MVP]

Krzysztof,

In order to do this, I believe you want to set the TopMost property to
true.

Hope this helps.
 
G

Guest

Thanks,

I've made it...
But it is about different problem...
Imagine e.g. word processing application... you write something, and this
application sometimes shows you new Form with some information... this new
Form always gets focus, when showing, but I don't want this... I want to
develop, that the cursor will stay on the place where it was, before
notification have shown up...so new Form want engage user, he could still
write, because he didn’t lost focus on a main window… new window is only
notification until user clicks it.
So another words I want to show new Window, that isn't focused, until user
activates is...

So, If You know any solution for creating Window, that wont get focused...




Nicholas Paldino said:
Krzysztof,

In order to do this, I believe you want to set the TopMost property to
true.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Krzysztof Karnicki said:
I would like develop Form on my Windows Application, that is going to
notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows.Forms.Form and show it on a different
then
main thread on my application, this new form became focused, but I want
that
new form at the beginning acts like just stay-on-top notification. also in
this form I would like have controls, that could be focused, when users
click
it, like, LinkLabel (so it couldn't be just ToolTip, or something like
this).
Could I create such a Form, that wont be take focus, when I showing it in
c#...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Form "stay on top" 1
Form Load method 3
Invoking UI from woker thread. 12
Weird problem of nested ShowDialog() behavior 10
Thread crossing 2
Thread Loading Form 1
Help with thread 1
Showing a form from another thread 1

Top