943,742 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 2451
  • VB.NET RSS
Dec 5th, 2008
0

App runing in systray, alert user with pop up form

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vagueante is offline Offline
2 posts
since Dec 2008
Dec 5th, 2008
0

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

Set TopMost property of your pop up form
VB.NET Syntax (Toggle Plain Text)
  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.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008
Dec 5th, 2008
0

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
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Dec 9th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by Teme64 ...
Set TopMost property of your pop up form
VB.NET Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vagueante is offline Offline
2 posts
since Dec 2008
Dec 9th, 2008
0

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!
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: ASP Interface in VS2005
Next Thread in VB.NET Forum Timeline: Explorer form in vb.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC