Control.TabStopChanged Evento
Definición
public:
event EventHandler ^ TabStopChanged;
public event EventHandler TabStopChanged;
member this.TabStopChanged : EventHandler
Public Custom Event TabStopChanged As EventHandler
Tipo de evento
Ejemplos
En el ejemplo de código siguiente se muestra el uso de este miembro.The following code example demonstrates the use of this member. En el ejemplo, un controlador de eventos informa sobre la aparición del TabStopChanged evento.In the example, an event handler reports on the occurrence of the TabStopChanged event. Este informe le ayuda a saber cuándo se produce el evento y puede ayudarle a depurar.This report helps you to learn when the event occurs and can assist you in debugging. Para notificar varios eventos o eventos que se producen con frecuencia, considere la posibilidad de reemplazar MessageBox.Show por Console.WriteLine o anexar el mensaje a una multilínea TextBox .To report on multiple events or on events that occur frequently, consider replacing MessageBox.Show with Console.WriteLine or appending the message to a multiline TextBox.
Para ejecutar el código de ejemplo, péguelo en un proyecto que contenga una instancia de un tipo que herede de Control , como Button o ComboBox .To run the example code, paste it into a project that contains an instance of a type that inherits from Control, such as a Button or ComboBox. A continuación, asigne un nombre a la instancia Control1
y asegúrese de que el controlador de eventos está asociado al TabStopChanged evento.Then name the instance Control1
and ensure that the event handler is associated with the TabStopChanged event.
private void Control1_TabStopChanged(Object sender, EventArgs e) {
MessageBox.Show("You are in the Control.TabStopChanged event.");
}
Private Sub Control1_TabStopChanged(sender as Object, e as EventArgs) _
Handles Control1.TabStopChanged
MessageBox.Show("You are in the Control.TabStopChanged event.")
End Sub
Comentarios
Este evento se desencadena si TabStop se cambia la propiedad mediante una modificación mediante programación o una interacción del usuario.This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
Para obtener más información sobre el manejo de eventos, consulte controlar y provocar eventos.For more information about handling events, see Handling and Raising Events.