title: Repositioning a Windows Form (location)
body: <p>How do I position a Windows Form to the bottom-right of the screen when it gets open, instead of top-left? </p>
  
  <p><strong>Situation:</strong> I have a <strong>Form1</strong> which doesn't actually do anything as a form, I just used it for its context menu (my app works from the tray only). So, most of the main running code goes into the Form1 class. When a context menu is clicked, it will do some processing and in the end it will show <strong>Form2</strong>. So <strong>Form2</strong> gets opened/called by a context menu item of <strong>Form1</strong>. How do I change Form2's position in this case?</p>
  
  <p><strong>Form1.cs</strong> (part where <strong>Form2</strong> gets triggered)</p>
  
  <pre><code>private void menu_upload_file_Click(object sender, EventArgs e)
  {
      DialogResult dialogOpened = openFileDialog1.ShowDialog();
      if (dialogOpened == DialogResult.OK)
      {
          string filename = openFileDialog1.FileName;
  
          using (var client = new WebClient())
          {
              var response = client.UploadFile("http://localhost/imgitv3/upload.php?submit=true&amp;action=upload&amp;request=app", "POST", filename);
              // string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + Path.DirectorySeparatorChar + "response.txt";
  
              if (response != null)
              {
                  string responseContent = System.Text.Encoding.ASCII.GetString(response);
                  Form2 linkWindow = new Form2();
  
                  if (isURL(responseContent))
                  {
                      linkWindow.toTextBox(responseContent);
                      linkWindow.Show();
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>Form2.Designer.cs</strong></p>
  
  <pre><code>// 
              // Form2
              // 
              this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
              this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
              this.CausesValidation = false;
              this.ClientSize = new System.Drawing.Size(419, 163);
              this.Controls.Add(this.textBox2);
              this.Controls.Add(this.textBox1);
              this.Controls.Add(this.label3);
              this.Controls.Add(this.label2);
              this.Controls.Add(this.label1);
              this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
              this.MaximizeBox = false;
              this.MaximumSize = new System.Drawing.Size(435, 202);
              this.MinimizeBox = false;
              this.MinimumSize = new System.Drawing.Size(435, 202);
              this.Name = "Form2";
              this.ShowInTaskbar = false;
              this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
              this.Text = "IMGit Image Uploader";
              this.TopMost = true;
              this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
              this.Load += new System.EventHandler(this.Form2_Load);
              this.ResumeLayout(false);
              this.PerformLayout();
  </code></pre>