Form come up near system tray

  • Thread starter Thread starter deciacco
  • Start date Start date
D

deciacco

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.
 
Hi,

You can calculate the size of the screen and then position the window where
you want.
 
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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top