TopMost property (on-top) without activate form.
-
Hi all I'm trying to make something like the online notification from MSN, so i want the pop-up form not to recieve any focus at all. what i have done so far: 1. overrided the property ShowWithoutActivation to return true so that when the form is displayed, the form is not activated!!(and i see that activated event do not occur) protected override bool ShowWithoutActivation { get { return true; } } 2. i make sure that the MsgForm.TopMost=false because the topmost feature always activate the form which is bad. because then , after i click first time on the notifiation form it starts to get the focus when i pop-up it. the problem: if i dont use the TopMost, its working fine but.. i need it to be on top of programs otherwise it will not be shown. Please help me. Thanks.
R.Z
-
Hi all I'm trying to make something like the online notification from MSN, so i want the pop-up form not to recieve any focus at all. what i have done so far: 1. overrided the property ShowWithoutActivation to return true so that when the form is displayed, the form is not activated!!(and i see that activated event do not occur) protected override bool ShowWithoutActivation { get { return true; } } 2. i make sure that the MsgForm.TopMost=false because the topmost feature always activate the form which is bad. because then , after i click first time on the notifiation form it starts to get the focus when i pop-up it. the problem: if i dont use the TopMost, its working fine but.. i need it to be on top of programs otherwise it will not be shown. Please help me. Thanks.
R.Z
I can't think of what you could do... why do you have to have it so it doesn't get focus?
-
I can't think of what you could do... why do you have to have it so it doesn't get focus?
-
Im trying to do something like MSN's user online notification. the small form never get the focus, but it always on-top. so it is possible.
R.Z
There are several ways to accomplish that, i've created a few apps using this feature (it gets boring though ;-)) and most were built from an example found on codeproject. I say, look through the articles, those guys spend a lot of time writing them, and are worth reading!
- - - --[ i love it when a plan comes together ]-- - - -