I have an application like this:
The yellow form will appear when user click to a button on the main Form and i want that yellow form appear at the position where the cursor is pointing to. (in the picture is button number 26). But it just appears somewhere else (just like picture too)
Here is my onClick event of button on the main form:
ChooseAnswer Answer = new ChooseAnswer();
Answer.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
Answer.ShowDialog();
What's wrong with this?
Sorry about my english!
OK the solution is:
ChooseAnswer Answer = new ChooseAnswer();
Answer.StartPosition = FormStartPosition.Manual;
Answer.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
Answer.ShowDialog();