C # Windows control focus event sequence

xiaoxiao2021-03-06  118

The following is the result of my test TextBox event, if there is something wrong, I hope to correct it.

First, click on the control with the mouse and leave it.

EntergotfocuslostfocusleValidatingValidated

Second, use the mouse when validating can Canceleventargs.cancel = true: EntergotfocuslostfocusleaveValidatintergotfocus

Third, when using the Tab key through a control.

EntergotfocusKeyupleValidatingValidatedLostfocus

Fourth, use the Tab keys during validating, caledeleventagentargs.cancel = true

EntergotfocusKeyupleValidatingenterKeyup

转载请注明原文地址:https://www.9cbs.com/read-125847.html

New Post(0)