D deciacco Jun 26, 2007 #1 I'm writing a very small notifyicon app and I want a form to pop up on double click near the icon tray. Any suggestions? Thanks.
I'm writing a very small notifyicon app and I want a form to pop up on double click near the icon tray. Any suggestions? Thanks.
I Ignacio Machin \( .NET/ C# MVP \) Jun 26, 2007 #2 Hi, You can calculate the size of the screen and then position the window where you want.
D deciacco Jun 26, 2007 #3 I wasn't sure how to get the desktop information. What I needed was the keyword "Screen". This is what I did for future ref: myapp.MyForm frmDisplay = new MyForm(); Rectangle scrn = new Rectangle(); scrn = Screen.PrimaryScreen.WorkingArea; frmDisplay.Top = scrn.Height - frmDisplay.Height; frmDisplay.Left = scrn.Width - frmDisplay.Width; frmDisplay.Show(); Thanks!!
I wasn't sure how to get the desktop information. What I needed was the keyword "Screen". This is what I did for future ref: myapp.MyForm frmDisplay = new MyForm(); Rectangle scrn = new Rectangle(); scrn = Screen.PrimaryScreen.WorkingArea; frmDisplay.Top = scrn.Height - frmDisplay.Height; frmDisplay.Left = scrn.Width - frmDisplay.Width; frmDisplay.Show(); Thanks!!