Swan White
Swan White

Reputation: 1

creating popup message

I want to show a popup window for few seconds to greet users on their desktop. it should be non-interactive.i want to do this in c# ,winform or wpf. For example, After user logged in, For every 3 hours , “Hello” message Should be shown for a second, then auto hide. can anyone give some ideas. thanks

Upvotes: 0

Views: 786

Answers (2)

Maxim V. Pavlov
Maxim V. Pavlov

Reputation: 10509

In WPF:

Use Popup control to display your "Hello".

In the application, to set up recurring popup display and close, set up an instance of System.Windows.Threading.DispatcherTimer Class.

Upvotes: 3

XenoPuTtSs
XenoPuTtSs

Reputation: 1284

Create a form to display whatever message you want, size it however you feel. But a timer on it for 3 seconds that will do form.close() when the timer expires.

when your app loads, have it display the form.

Upvotes: 0

Related Questions