How to mimic JavaScript's onBlur event in Windows Forms?

前端 未结 4 572
再見小時候
再見小時候 2021-01-18 00:06

I have phone and email textboxes on a Windows Form that I want to validate when the user leaves the fields.

When I double click the textbox in Visual Studio form des

4条回答
  •  借酒劲吻你
    2021-01-18 00:32

    Try the Leave event. Navigate to the Property page for your control.

    You can simply type the name of the method you'll be creating. Press Enter and Visual Studio will create the method for you.

    enter image description here

    enter image description here

提交回复
热议问题