![]() The Value property for these controls reflects the current Page or Tab. The following are examples of actions that initiate the Click event due to assigning a new value to a control:Ĭlicking a different page or tab in a MultiPage or TabStrip. However, using the Change event is the preferred technique for detecting a new value for a property. When the Click event results from clicking a control, the sequence of events leading to the Click event is:įor some controls, the Click event occurs when the Value property changes. Pressing ESC on a form that has a command button whose Cancel property is set to True, as long as no other command button has the focus. Pressing ENTER on a form that has a command button whose Default property is set to True, as long as no other command button has the focus. Pressing the SPACEBAR when a CommandButton has the focus. If the command button doesn't already have the focus, the Enter event occurs before the Click event. The following are examples of actions that initiate the Click event:Ĭlicking a blank area of a form or a disabled control (other than a list box) on the form.Ĭlicking a CommandButton. It also applies to an OptionButton when the value changes to True. The second case applies to the CheckBox, ComboBox, ListBox, MultiPage, TabStrip, and ToggleButton. Of the two cases where the Click event occurs, the first case applies to the CommandButton, Frame, Image, Label, ScrollBar, and SpinButton. The index of the page or tab in a MultiPage or TabStrip associated with this event. The Click event syntax has these parts: Part The user definitively selects a value for a control with more than one possible value.įor MultiPage, TabStrip: Private Sub object _ Click( index As Long)įor all other controls: Private Sub object _ Click( ).The user clicks a control with the mouse.
0 Comments
Leave a Reply. |