Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to display popup at RHS using timer control in window application in c#

All I want to do is to put a message on the screen, and I want it to be
visible no matter what application has the top level window.
Posted

1 solution

You can use MessageBox.Show Method (IWin32Window, String) to display a message box in front of the specified object and with the specified text. Such as
C#
MessageBox.Show(new Form() { TopMost = true }, "Your text here!"); 


But I would rather prefer to create my own messagebox from a from which basically acts like a message box. After creating it set its TopMost property to true and call it with the .ShowDialog() method.

Good luck,
OI
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900