A
Anil Gupte
As in "Who am I?" or better "Who am Me?"
When I use:
Dim X0 As Integer = ActiveForm.Location.X
Dim Y0 As Integer = ActiveForm.Location.Y
Dim strTest As String = ActiveForm.Name
Dim SIX0 = X0 + 560
Dim SIY0 = Y0 - 30
The strTest variable contains the name of the container form (the
MDIParent). However, when I do this:
Dim X0 As Integer = Me.Location.X
Dim Y0 As Integer = Me.Location.Y
Dim strTest As String = Me.Name
Dim SIX0 = X0 + 560
Dim SIY0 = Y0 - 30
I get the name of the form within the container (called FormMain). More
important the locations seem to be all messed up. When I use Me.Location,
the 0,0 point is not the topleft of the form, I have to use the negative
value to try to position some test at the top.
Any advice?
Thanx,
When I use:
Dim X0 As Integer = ActiveForm.Location.X
Dim Y0 As Integer = ActiveForm.Location.Y
Dim strTest As String = ActiveForm.Name
Dim SIX0 = X0 + 560
Dim SIY0 = Y0 - 30
The strTest variable contains the name of the container form (the
MDIParent). However, when I do this:
Dim X0 As Integer = Me.Location.X
Dim Y0 As Integer = Me.Location.Y
Dim strTest As String = Me.Name
Dim SIX0 = X0 + 560
Dim SIY0 = Y0 - 30
I get the name of the form within the container (called FormMain). More
important the locations seem to be all messed up. When I use Me.Location,
the 0,0 point is not the topleft of the form, I have to use the negative
value to try to position some test at the top.
Any advice?
Thanx,