call combobox gotfocus event in inside the function
<p>i am working on windows form application,i have two combo box.inside the function i have to check which combobox i have focuse.depend on that i have to do some operation  </p>

<p>i have done coding in combox focus event like this</p>

<pre><code>Private Sub cmbfrmwarehouse_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbfrmwarehouse.GotFocus


        Dim currencombobox As ComboBox = sender

    If currencombobox.Equals(cmbfrmwarehouse) Then
        MessageBox.Show("it's in two")
    ElseIf currencombobox.Equals(cmbTowarehouse) Then
        MessageBox.Show("it's in three")
    End If
    End Sub
</code></pre>

<p>but i am not able to call this event in inside the function.how i can achieve this.Please help</p>