hi guys! i have form2 on my project and i want it to always on top of any other open application like MS Office,IE, etc..and appears right on top of the system tray. Can anybody please help me to do this. Any inputs will be greatly appreciated.
Printable View
hi guys! i have form2 on my project and i want it to always on top of any other open application like MS Office,IE, etc..and appears right on top of the system tray. Can anybody please help me to do this. Any inputs will be greatly appreciated.
set the topmost property of the form to true
Code:Rectangle workingArea = Screen.PrimaryScreen.WorkingArea;
Form f = new Form();
f.TopMost = true;
f.StartPosition = FormStartPosition.Manual;
f.Location = new Point(workingArea.Width - f.Width, workingArea.Height - f.Height);
f.Show();
Thanks guys! that helps me a lot.