App runing in systray, alert user with pop up form

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
Reply

Join Date: Dec 2008
Posts: 2
Reputation: vagueante is an unknown quantity at this point 
Solved Threads: 0
vagueante vagueante is offline Offline
Newbie Poster

App runing in systray, alert user with pop up form

 
0
  #1
Dec 5th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: App runing in systray, alert user with pop up form

 
0
  #2
Dec 5th, 2008
Set TopMost property of your pop up form
  1. Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2. '
  3. Me.TopMost = True
  4.  
  5. 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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: App runing in systray, alert user with pop up form

 
0
  #3
Dec 5th, 2008
Why not use a notify icon. Here's how to do one.
http://www.codeproject.com/KB/dotnet...control20.aspx
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 2
Reputation: vagueante is an unknown quantity at this point 
Solved Threads: 0
vagueante vagueante is offline Offline
Newbie Poster

Re: App runing in systray, alert user with pop up form

 
0
  #4
Dec 9th, 2008
Originally Posted by Teme64 View Post
Set TopMost property of your pop up form
  1. Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2. '
  3. Me.TopMost = True
  4.  
  5. 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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: App runing in systray, alert user with pop up form

 
0
  #5
Dec 9th, 2008
Hi! Nice to hear that you got answer to your problem, could you please mark the thread as solved. Thank you!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC