RSS Forums RSS

App runing in systray, alert user with pop up form

Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Thread Solved
Reply
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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Posts: 650
Reputation: Teme64 is on a distinguished road 
Solved Threads: 106
Teme64's Avatar
Teme64 Teme64 is offline Offline
Practically a Master Poster

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

  #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  
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

  #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  
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

  #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  
Posts: 650
Reputation: Teme64 is on a distinguished road 
Solved Threads: 106
Teme64's Avatar
Teme64 Teme64 is offline Offline
Practically a Master Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Other Threads in the VB.NET Forum
Views: 781 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:10 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC