DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   App runing in systray, alert user with pop up form (http://www.daniweb.com/forums/thread160900.html)

vagueante Dec 5th, 2008 12:57 pm
App runing in systray, alert user with pop up form
 
Hi all,

I have a small app in .net 2008, running (in systray), in many computers in my company, that has to alert the user a few times during the day's work, and sometimes ask for their input.

The problem is, when, i open a form (show or showdialog), it doesn't popup, this because the user is working in other office app's, and the forms stays behind, and most of the times the users don't even pay attention.

Is there a way to put a form in popup, jumping in front of any app that may be open or maybe create a window info, like the one outlook does when alerting of an incoming mail?

Thanks for any help

Teme64 Dec 5th, 2008 3:04 pm
Re: App runing in systray, alert user with pop up form
 
Set TopMost property of your pop up form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  '
  Me.TopMost = True

End Sub
After the user has somehow "reacted" to your pop up, you may set TopMost = False to allow user send your form to background.

waynespangler Dec 5th, 2008 5:02 pm
Re: App runing in systray, alert user with pop up form
 
Why not use a notify icon. Here's how to do one.
http://www.codeproject.com/KB/dotnet...control20.aspx

vagueante Dec 9th, 2008 5:43 am
Re: App runing in systray, alert user with pop up form
 
Quote:

Originally Posted by Teme64 (Post 751119)
Set TopMost property of your pop up form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  '
  Me.TopMost = True

End Sub
After the user has somehow "reacted" to your pop up, you may set TopMost = False to allow user send your form to background.

Thanxs for your help.

that worked just fine

Teme64 Dec 9th, 2008 5:58 am
Re: App runing in systray, alert user with pop up form
 
Hi! Nice to hear that you got answer to your problem, could you please mark the thread as solved. Thank you!


All times are GMT -4. The time now is 1:50 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC