Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I understood everything, you need to overload the constructor and pass the necessary coordinates through it.
Code in the form to be called ( Form2 )
public Form2()
{
InitializeComponent();
StartPosition = FormStartPosition.Manual;
}
public Form2(Point newLocation) : this()
{
Location = newLocation;
}
private void button1_Click(object sender, EventArgs e)
{
new Form2(Cursor.Position).Show();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question