K
kevininstructor
I have a SDI Windows form application were the secondary form when shown
should appear directly below a text-box in the calling form. I thought the
code below might work (use to using ClientToScreen in Delphi) but alas it
doesn't. Any thoughts on how to do this?
Thanks
Kevin
....
Try
frmForm.Top = Me.TextBox1.Top + 100
frmForm.Left = Me.TextBox1.Left + Me.TextBox1.Height + 100
frmForm.ShowDialog(Me)
Finally
frmForm.Dispose()
End Try
should appear directly below a text-box in the calling form. I thought the
code below might work (use to using ClientToScreen in Delphi) but alas it
doesn't. Any thoughts on how to do this?
Thanks
Kevin
....
Try
frmForm.Top = Me.TextBox1.Top + 100
frmForm.Left = Me.TextBox1.Left + Me.TextBox1.Height + 100
frmForm.ShowDialog(Me)
Finally
frmForm.Dispose()
End Try