This is probably really easy, but I can’t figure it out nonetheless. I am trying to spawn my Windows Form at the cursor’s location (upon double-click). I am able to get everything else I need (cursorXY,clickhandler), but I can’t figure out how to edit the form, before or after I Show() it.
public Form2(int cursorX, int cursorY)
{
Location = new Point(cursorX, cursorY);
...
This doesn’t work, I know, because it’s referring to its location within its container. I’ve gathered that by capturing form.Location while debugging (it’s always 0,0). So editing Location doesn’t do anything so far. Can I move the container or window?
Set the
StartPositionof the form toManual: