Control.Click Control.Click Control.Click Control.Click Event

Definition

Происходит при щелчке элемента управления. Occurs when the control is clicked.

public:
 event EventHandler ^ Click;
public event EventHandler Click;
member this.Click : EventHandler 
Public Custom Event Click As EventHandler 

Examples

В следующем коде показано в примере Click события в обработчик событий.The following code example shows the Click event in an event handler.

   // This example uses the Parent property and the Find method of Control to set
   // properties on the parent control of a Button and its Form. The example assumes
   // that a Button control named button1 is located within a GroupBox control. The 
   // example also assumes that the Click event of the Button control is connected to
   // the event handler method defined in the example.
private:
   void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
   {
      // Get the control the Button control is located in. In this case a GroupBox.
      Control^ control = button1->Parent;
      
      // Set the text and backcolor of the parent control.
      control->Text = "My Groupbox";
      control->BackColor = Color::Blue;
      
      // Get the form that the Button control is contained within.
      Form^ myForm = button1->FindForm();
      
      // Set the text and color of the form containing the Button.
      myForm->Text = "The Form of My Control";
      myForm->BackColor = Color::Red;
   }
// This example uses the Parent property and the Find method of Control to set
// properties on the parent control of a Button and its Form. The example assumes
// that a Button control named button1 is located within a GroupBox control. The 
// example also assumes that the Click event of the Button control is connected to
// the event handler method defined in the example.
private void button1_Click(object sender, System.EventArgs e)
{
   // Get the control the Button control is located in. In this case a GroupBox.
   Control control = button1.Parent;
   // Set the text and backcolor of the parent control.
   control.Text = "My Groupbox";
   control.BackColor = Color.Blue;
   // Get the form that the Button control is contained within.
   Form myForm = button1.FindForm();
   // Set the text and color of the form containing the Button.
   myForm.Text = "The Form of My Control";
   myForm.BackColor = Color.Red;
}
' This example uses the Parent property and the Find method of Control to set
' properties on the parent control of a Button and its Form. The example assumes
' that a Button control named button1 is located within a GroupBox control. The 
' example also assumes that the Click event of the Button control is connected to
' the event handler method defined in the example.
Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click
   ' Get the control the Button control is located in. In this case a GroupBox.
   Dim control As Control = button1.Parent
   ' Set the text and backcolor of the parent control.
   control.Text = "My Groupbox"
   control.BackColor = Color.Blue
   ' Get the form that the Button control is contained within.
   Dim myForm As Form = button1.FindForm()
   ' Set the text and color of the form containing the Button.
   myForm.Text = "The Form of My Control"
   myForm.BackColor = Color.Red
End Sub

Remarks

Click Событие передает EventArgs обработчику событий, поэтому он определяет только то, что произошло нажатие.The Click event passes an EventArgs to its event handler, so it only indicates that a click has occurred. Если вам требуется более конкретные сведения о мыши (кнопка, количество щелчков, поворот колесика мыши или расположение), используйте MouseClick событий.If you need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event. Тем не менее MouseClick событие не будет вызываться, если нажатием вызван действие, отличным от мыши, например нажатия клавиши ВВОД.However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as pressing the ENTER key.

Как двойной щелчок определяется настройками мыши в операционной системе пользователя.A double-click is determined by the mouse settings of the user's operating system. Пользователь может задать время между нажатиями кнопки мыши, которые будут считаться двойным щелчком, а не двумя отдельными щелчками.The user can set the time between clicks of a mouse button that should be considered a double-click rather than two clicks. Click Событие вызывается каждый раз при двойном щелчке элемента управления.The Click event is raised every time a control is double-clicked. Например, если у вас есть обработчики событий для Click и DoubleClick события Form, Click и DoubleClick событий при двойном щелчке формы и вызове обоих методов.For example, if you have event handlers for the Click and DoubleClick events of a Form, the Click and DoubleClick events are raised when the form is double-clicked and both methods are called. При двойном щелчке элемента управления и элемент управления поддерживает DoubleClick событий, Click событие может вызываться дважды.If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be raised twice.

Необходимо задать StandardClick значение ControlStyles для true для возникновения этого события.You must set the StandardClick value of ControlStyles to true for this event to be raised.

Примечание

Следующие события не вызываются для TabControl класса, если имеется по крайней мере один TabPage в TabControl.TabPages коллекции: Click, DoubleClick, MouseDown, MouseUp, MouseHover, MouseEnter, MouseLeave и MouseMove.The following events are not raised for the TabControl class unless there is at least one TabPage in the TabControl.TabPages collection: Click, DoubleClick, MouseDown, MouseUp, MouseHover, MouseEnter, MouseLeave and MouseMove. Если имеется по крайней мере один TabPage в коллекции, и пользователь взаимодействует с заголовка элемента управления tab (где TabPage отображаются имена), TabControl вызывает соответствующее событие.If there is at least one TabPage in the collection, and the user interacts with the tab control's header (where the TabPage names appear), the TabControl raises the appropriate event. Тем не менее, если пользователь работает в пределах области страницы вкладки, TabPage вызывает соответствующее событие.However, if the user interaction is within the client area of the tab page, the TabPage raises the appropriate event.

Дополнительные сведения об обработке событий см. в разделе обработка и вызов событий.For more information about handling events, see Handling and Raising Events.

Notes to Inheritors

Наследование от стандартного элемента управления Windows Forms и замена StandardClick или StandardDoubleClick значения ControlStyles для true может привести к непредвиденному поведению или вообще не действует, если элемент управления не поддерживает Click или DoubleClickсобытия. Inheriting from a standard Windows Forms control and changing the StandardClick or StandardDoubleClick values of ControlStyles to true can cause unexpected behavior or have no effect at all if the control does not support the Click or DoubleClick events. В следующей таблице перечислены элементы управления Windows Forms и какое событие (Click или DoubleClick) вызывается в ответ на указанное действие мыши. The following table lists Windows Forms controls and which event (Click or DoubleClick) is raised in response to the mouse action specified.

Элемент управления Control Щелчок левой кнопкой мыши Left Mouse Click

             <span data-ttu-id="f0c2d-499">Двойной щелчок левой кнопкой мыши</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-499">Left Mouse Double Click</span>
             </span>

             <span data-ttu-id="f0c2d-500">Щелкните правой кнопкой мыши</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-500">Right Mouse Click</span>
             </span>

             <span data-ttu-id="f0c2d-501">Дважды щелкните правой кнопкой мыши</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-501">Right Mouse Double Click</span>
             </span>

             <span data-ttu-id="f0c2d-502">Щелчок средней кнопкой мыши</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-502">Middle Mouse Click</span>
             </span>

             <span data-ttu-id="f0c2d-503">Двойной щелчок средней кнопкой мыши</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-503">Middle Mouse Double Click</span>
             </span>

             <span data-ttu-id="f0c2d-504">Нажмите кнопку мыши XButton1</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-504">XButton1 Mouse Click</span>
             </span>

             <span data-ttu-id="f0c2d-505">Мыши XButton1</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-505">XButton1 Mouse Double-Click</span>
             </span>

             <span data-ttu-id="f0c2d-506">Щелчок мыши XButton2</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-506">XButton2 Mouse Click</span>
             </span>

             <span data-ttu-id="f0c2d-507">Мыши xbutton2</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-507">XButton2 Mouse Double-Click</span>
             </span>
           </th></tr></thead><tbody><tr><td>
             <span data-ttu-id="f0c2d-508">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.MonthCalendar"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-508">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.MonthCalendar"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-509">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DateTimePicker"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-509">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DateTimePicker"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-510">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.HScrollBar"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-510">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.HScrollBar"></xref>,</span>
             </span>
             <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.VScrollBar"></xref>
           </td><td>
             <span data-ttu-id="f0c2d-511">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-511">none</span>
             </span>

             <span data-ttu-id="f0c2d-512">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-512">none</span>
             </span>

             <span data-ttu-id="f0c2d-513">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-513">none</span>
             </span>

             <span data-ttu-id="f0c2d-514">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-514">none</span>
             </span>

             <span data-ttu-id="f0c2d-515">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-515">none</span>
             </span>

             <span data-ttu-id="f0c2d-516">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-516">none</span>
             </span>

             <span data-ttu-id="f0c2d-517">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-517">none</span>
             </span>

             <span data-ttu-id="f0c2d-518">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-518">none</span>
             </span>

             <span data-ttu-id="f0c2d-519">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-519">none</span>
             </span>

             <span data-ttu-id="f0c2d-520">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-520">none</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-521">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Button"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-521">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Button"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-522">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.CheckBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-522">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.CheckBox"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-523">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.RichTextBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-523">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.RichTextBox"></xref>,</span>
             </span>
             <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.RadioButton"></xref>
           </td><td>
             <span data-ttu-id="f0c2d-524">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-524">Click</span>
             </span>

             <span data-ttu-id="f0c2d-525">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-525">Click, Click</span>
             </span>

             <span data-ttu-id="f0c2d-526">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-526">none</span>
             </span>

             <span data-ttu-id="f0c2d-527">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-527">none</span>
             </span>

             <span data-ttu-id="f0c2d-528">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-528">none</span>
             </span>

             <span data-ttu-id="f0c2d-529">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-529">none</span>
             </span>

             <span data-ttu-id="f0c2d-530">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-530">none</span>
             </span>

             <span data-ttu-id="f0c2d-531">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-531">none</span>
             </span>

             <span data-ttu-id="f0c2d-532">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-532">none</span>
             </span>

             <span data-ttu-id="f0c2d-533">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-533">none</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-534">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-534">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListBox"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-535">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.CheckedListBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-535">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.CheckedListBox"></xref>,</span>
             </span>
             <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ComboBox"></xref>
           </td><td>
             <span data-ttu-id="f0c2d-536">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-536">Click</span>
             </span>

             <span data-ttu-id="f0c2d-537">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-537">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-538">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-538">none</span>
             </span>

             <span data-ttu-id="f0c2d-539">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-539">none</span>
             </span>

             <span data-ttu-id="f0c2d-540">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-540">none</span>
             </span>

             <span data-ttu-id="f0c2d-541">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-541">none</span>
             </span>

             <span data-ttu-id="f0c2d-542">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-542">none</span>
             </span>

             <span data-ttu-id="f0c2d-543">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-543">none</span>
             </span>

             <span data-ttu-id="f0c2d-544">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-544">none</span>
             </span>

             <span data-ttu-id="f0c2d-545">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-545">none</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-546">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TextBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-546">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TextBox"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-547">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DomainUpDown"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-547">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DomainUpDown"></xref>,</span>
             </span>
             <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.NumericUpDown"></xref>
           </td><td>
             <span data-ttu-id="f0c2d-548">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-548">Click</span>
             </span>

             <span data-ttu-id="f0c2d-549">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-549">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-550">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-550">none</span>
             </span>

             <span data-ttu-id="f0c2d-551">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-551">none</span>
             </span>

             <span data-ttu-id="f0c2d-552">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-552">none</span>
             </span>

             <span data-ttu-id="f0c2d-553">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-553">none</span>
             </span>

             <span data-ttu-id="f0c2d-554">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-554">none</span>
             </span>

             <span data-ttu-id="f0c2d-555">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-555">none</span>
             </span>

             <span data-ttu-id="f0c2d-556">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-556">none</span>
             </span>

             <span data-ttu-id="f0c2d-557">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-557">none</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-558">\* <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TreeView"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-558">\* <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TreeView"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-559">\* <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListView"></xref></span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-559">\* <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListView"></xref></span>
             </span>
           </td><td>
             <span data-ttu-id="f0c2d-560">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-560">Click</span>
             </span>

             <span data-ttu-id="f0c2d-561">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-561">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-562">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-562">Click</span>
             </span>

             <span data-ttu-id="f0c2d-563">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-563">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-564">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-564">none</span>
             </span>

             <span data-ttu-id="f0c2d-565">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-565">none</span>
             </span>

             <span data-ttu-id="f0c2d-566">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-566">none</span>
             </span>

             <span data-ttu-id="f0c2d-567">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-567">none</span>
             </span>

             <span data-ttu-id="f0c2d-568">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-568">none</span>
             </span>

             <span data-ttu-id="f0c2d-569">Нет</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-569">none</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-570">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ProgressBar"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-570">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ProgressBar"></xref>,</span>
             </span>
             <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TrackBar"></xref>
           </td><td>
             <span data-ttu-id="f0c2d-571">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-571">Click</span>
             </span>

             <span data-ttu-id="f0c2d-572">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-572">Click, Click</span>
             </span>

             <span data-ttu-id="f0c2d-573">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-573">Click</span>
             </span>

             <span data-ttu-id="f0c2d-574">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-574">Click, Click</span>
             </span>

             <span data-ttu-id="f0c2d-575">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-575">Click</span>
             </span>

             <span data-ttu-id="f0c2d-576">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-576">Click, Click</span>
             </span>

             <span data-ttu-id="f0c2d-577">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-577">Click</span>
             </span>

             <span data-ttu-id="f0c2d-578">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-578">Click, Click</span>
             </span>

             <span data-ttu-id="f0c2d-579">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-579">Click</span>
             </span>

             <span data-ttu-id="f0c2d-580">Нажмите кнопку, нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-580">Click, Click</span>
             </span>
           </td></tr><tr><td>
             <span data-ttu-id="f0c2d-581">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Form"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-581">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Form"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-582">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DataGrid"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-582">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.DataGrid"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-583">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Label"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-583">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Label"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-584">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.LinkLabel"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-584">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.LinkLabel"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-585">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Panel"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-585">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Panel"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-586">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.GroupBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-586">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.GroupBox"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-587">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.PictureBox"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-587">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.PictureBox"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-588">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Splitter"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-588">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.Splitter"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-589">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.StatusBar"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-589">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.StatusBar"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-590">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ToolBar"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-590">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ToolBar"></xref>,</span>
             </span>
             <span data-ttu-id="f0c2d-591">
               <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabPage"></xref>,</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-591">
                 <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabPage"></xref>,</span>
             </span> 

** TabControl

Нажмите кнопку Click

             <span data-ttu-id="f0c2d-593">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-593">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-594">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-594">Click</span>
             </span>

             <span data-ttu-id="f0c2d-595">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-595">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-596">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-596">Click</span>
             </span>

             <span data-ttu-id="f0c2d-597">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-597">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-598">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-598">Click</span>
             </span>

             <span data-ttu-id="f0c2d-599">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-599">Click, DoubleClick</span>
             </span>

             <span data-ttu-id="f0c2d-600">Нажмите кнопку</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-600">Click</span>
             </span>

             <span data-ttu-id="f0c2d-601">Щелчок, двойной щелчок</span>
             <span class="sxs-lookup">
               <span data-stu-id="f0c2d-601">Click, DoubleClick</span>
             </span>
           </td></tr></tbody></table>
       <span data-ttu-id="f0c2d-602">\* Указатель мыши должен быть на дочернем объекте (<xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TreeNode"></xref> или <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListViewItem"></xref>).</span>
       <span class="sxs-lookup">
         <span data-stu-id="f0c2d-602">\* The mouse pointer must be over a child object (<xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TreeNode"></xref> or <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.ListViewItem"></xref>).</span>
       </span>
       <span data-ttu-id="f0c2d-603">\*\* <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabControl"></xref> Должен иметь по крайней мере <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabPage"></xref> в его <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabControl.TabPages"></xref> коллекции.</span>
       <span class="sxs-lookup">
         <span data-stu-id="f0c2d-603">\*\* The <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabControl"></xref> must have at least one <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabPage"></xref> in its <xref data-throw-if-not-resolved="true" uid="System.Windows.Forms.TabControl.TabPages"></xref> collection.</span>
       </span>

Applies to

See Also