Don't do that!
If some part of code should work in both events:
Button_Click
event and
DataGridView_CellClick
, move it into another function/procedure.
Private Sub DoSomething(CurrentDGVCell As Integer)
End Sub
then call like this:
Private Sub ContextGridView_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles ContextGridView.CellClick
DoSomething(GetCurrentDGVCell)
End Sub
Public Sub bt_CreateName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_CreateName.Click
DoSomething(GetCurrentDGVCell)
End sub