Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,

Below is my code Leave event triggering twice and getting two interaction box.
Kindly help me

Lostfocus event occurs after leaving the control.
Leave event occurs before leaving the control.
Is this correct?

What I have tried:

Private Sub BasicSalaryNumericEditor_Leave(sender As Object, e As EventArgs) Handles BasicSalaryNumericEditor.Leave
        Dim a As String = Microsoft.VisualBasic.Interaction.InputBox("Enter No of Interviewer" & Environment.NewLine & "To Enter No.of Interviewer Press Tab or F4 in Basic Salary Box")
            End Sub
Posted
Comments
Ralf Meier 5-Jan-18 5:03am    
You should tell something more about your Control. I suppose that you have a kind of UserControl (which other nested Controls in it) and you work with the Events from the hosting UserControl.
Maciej Los 5-Jan-18 5:12am    
I'd suggest to read this: Control.Leave Event (System.Windows.Forms)[^]. There you'll find the order of events for widnows form controls.
Sissy Ram 5-Jan-18 5:31am    
Thanks for your suggestion frnds
Ralf Meier 5-Jan-18 8:27am    
That's all ?
And what do you want to do now ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900