C
Cip
Hi, I am trying to open a new form immediately below a custom TextBox
control. (To simulate a type of drop-down list).
Anyways, this is how I am defining the new form:
(Me refers to the custom TextBox control)
_frm.TopMost = True
_frm.FormBorderStyle = FormBorderStyle.None
_frm.Size = New Size(150, 100)
_frm.StartPosition = FormStartPosition.Manual
_frm.Location = New Point(Me.PointToScreen(Me.Location))
Now when users click on the TextBox I have:
_frm.show()
For some reason _frm shows up in completely random places and I cannot
figure out what is going on. Sometimes lodged in the top left corner
of my screen, sometimes in the bottom... nowhere close to where it is
supposed to be.
Any help?
control. (To simulate a type of drop-down list).
Anyways, this is how I am defining the new form:
(Me refers to the custom TextBox control)
_frm.TopMost = True
_frm.FormBorderStyle = FormBorderStyle.None
_frm.Size = New Size(150, 100)
_frm.StartPosition = FormStartPosition.Manual
_frm.Location = New Point(Me.PointToScreen(Me.Location))
Now when users click on the TextBox I have:
_frm.show()
For some reason _frm shows up in completely random places and I cannot
figure out what is going on. Sometimes lodged in the top left corner
of my screen, sometimes in the bottom... nowhere close to where it is
supposed to be.
Any help?