Right hand Click active control RRS feed

  • Question

  • Hi can anyone help i'm really struggling with this one? how do u give a rich text box active control on right click?

    So far the code i have is:

    Private Sub mnuPopupNos_Click (index2 As Interger)

    Form1.ActiveControl.Text = mnuPopupNos (index2).Caption

    End Sub

    The program is already set up to bring a popup menu up on right click and i would like it to enter the caption of the menu into the feild that is right clicked. At the moment the code above will only input the value into any box with active control rather than the one that is right clicked.

    Any help would be appreciated.



    Monday, March 13, 2006 1:30 PM