locked
Dock a form on the desktop in C# RRS feed

  • Question

  • Hi I've got a program that uses two seperate forms

    When the forms load, I want one to automatically dock it's self to the right of the screen, and the other to dock it's self to the bottom-right of the screen.

    As a newbie.... Where do I start?! 

    Friday, February 13, 2009 8:31 AM

Answers

  • Set the form's StartupPosition to Manual so you can put it where you want it with the Location property.  The Screen class tells you the size of the monitor.
    Hans Passant.
    • Proposed as answer by Kira Qian Monday, February 16, 2009 6:37 AM
    • Marked as answer by Kira Qian Wednesday, February 18, 2009 9:46 AM
    Friday, February 13, 2009 11:28 AM