PDA

Click to See Complete Forum and Search --> : [RESOLVED] Form on top of other application


daimous
Oct 19th, 2006, 12:53 AM
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.

popskie
Oct 19th, 2006, 01:00 AM
set the topmost property of the form to true

jmcilhinney
Oct 19th, 2006, 01:03 AM
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();

daimous
Oct 19th, 2006, 02:06 AM
Thanks guys! that helps me a lot.