Re: Positioning a Window
- From: "C# Beginner" <def_daemon@xxxxxxxxx>
- Date: Mon, 13 Nov 2006 23:26:09 +0100
You mean like this?
This snippet should be placed in your new form. It will set the left and top
position of this new form 50 pixels
below and to the right of the parent form.
this.Left = this.Owner.Left + 50;
this.Top = this.Owner.Top + 50;
Hope you can use it.
"Matthew Ireland" <mireland@xxxxxxxxxxxxx> schreef in bericht
news:u0MQLG3BHHA.4292@xxxxxxxxxxxxxxxxxxxxxxx
I am creating a System.Windows.Forms.Form derived form in an OnClick()
method of a button. I would like to set the position of this new form on
the window, but I can't figure out what method to call or property to set
to override where the Operating System places the window. Any brillian
ideas our there?
Thanks
.
- References:
- Positioning a Window
- From: Matthew Ireland
- Positioning a Window
- Prev by Date: Re: Change status bar text back to default 5 seconds after every change?
- Next by Date: Re: Service application and NotifyIcon
- Previous by thread: Positioning a Window
- Next by thread: Re: Positioning a Window
- Index(es):