Hi,
Thank for your advise.
I had set the startupPosition property of the form to 0, but
it still don't show as I stated, but the left position is always
correct, but not the top position.
Below is my code to load the form, it should position the keyboard
form at the same left position of my frmMain and its top should be at frmAddSku
command button top position, but it just didn't. Please kindly advise.
With frmKeyBoard
.SetUp frmAddSku, "txtplu"
.Move frmMain.Left, frmAddSku.cmdConfirm.Top
.Show vbModal
End With
>Is the StartupPosition property of the form set to 0 ?
>The Move of a form goes to its Form_Load event.
>
>>Hi,
>>
>>My application had multiple form which I want to control the
>>coordination point, so I tried to move my form using code example below.
>>But they all give me different position. What is wrong with my
>>code. Please kindly advise and help. Thank you
>>
>>
>>Example 01) frmForm1.Move FrmMain.Left, FrmMain.Top
>> frmForm1.Show vbModal
>>
>>Example 02) frmForm1.Coord FrmMain.Left, FrmMain.Top
>> frmForm1.Show vbModal
>>
>>private frmLeft as integer
>>private frmTop as integer
>>frmForm1 Coord method(pvLeft as integer, pvTop as integer)
>>
>> frmLeft = pvLeft
>> frmTop = pvTop
>>
>>
>>frmForm1 Active event
>>
>>Me.Top = frmTop
>>Me.Left = frmLeft
Best Regards
Virusim