|
Hi all,
I'm trying to open a form at the location of the mouse. It resembles the way the context menu location works. My code doesn't seem to be working - it's just opening, but not at the correct location. I'm hoping someone can tell me what I'm doing wrong.
Thanks ahead of time, Denvas
CODE:
Private Sub ctxHist_Show_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ctxHist_Show.Click Dim fm As New frmEdit
With fm .Location = Control.MousePosition .ShowDialog() End With End Sub |