jackjohnson44
asked on
vb.net form position
I am trying to set the position of a form, but it seems to pop up at a random place every time.
SetParent(testProgram.Hand le.ToInt32 , Me.Handle.ToInt32)
testProgram.Show()
testProgram.Top = 100
testProgram.Left = 100
or
SetParent(testProgram.Hand le.ToInt32 , Me.Handle.ToInt32)
testProgram.Show()
testProgram.Top = me.top
testProgram.Left = me.left +100
I also tried
testProgram.Location = New Point(10,10)
SetParent(testProgram.Hand
testProgram.Show()
testProgram.Top = 100
testProgram.Left = 100
or
SetParent(testProgram.Hand
testProgram.Show()
testProgram.Top = me.top
testProgram.Left = me.left +100
I also tried
testProgram.Location = New Point(10,10)
sorry remove the semi colon after the second line
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SetParent(testProgram.Hand
testProgram.StartPosition = FormStartPosition.Manual;
testProgram.Location = New Point(10,10)
testProgram.Show()