Skip to content

"double-click" fix update to PR 5709 #5720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/extensibility/creating-a-windows-forms-toolbox-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The `Counter` control requires two child controls: a <xref:System.Windows.Forms.

#### To build the user interface

1. In **Solution Explorer**, select and hold (or double-click) *Counter.cs* to open it in the designer.
1. In **Solution Explorer**, double-tap or double-click *Counter.cs* to open it in the designer.

2. Remove the **Click Here !** button that is included by default when you add the Windows Forms Toolbox Control item template.

Expand All @@ -61,7 +61,7 @@ The `Counter` control will expose a method to increment the counter, an event to

#### To code the user control

1. Select and hold (or double-click) the form to open its load event handler in the code window.
1. Double-tap or double-click the form to open its load event handler in the code window.

2. Above the event handler method, in the control class create an integer to store the counter value and a string to store the display text as shown in the following example.

Expand Down Expand Up @@ -124,7 +124,7 @@ The `Counter` control will expose a method to increment the counter, an event to

Callers can add handlers to this event to respond to changes in the value of the counter.

7. Return to design view and select and hold (or double-click) the **Reset** button to generate the `btnReset_Click` event handler. Then, fill it in as shown in the following example.
7. Return to design view and double-tap or double-click the **Reset** button to generate the `btnReset_Click` event handler. Then, fill it in as shown in the following example.

```csharp
private void btnReset_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -156,7 +156,7 @@ The `Counter` control will expose a method to increment the counter, an event to

2. In the Experimental instance of Visual Studio, create a **Windows Forms Application** project.

3. In **Solution Explorer**, select and hold (or double-click) *Form1.cs* to open it in the designer if it is not already open.
3. In **Solution Explorer**, double-tap or double-click *Form1.cs* to open it in the designer if it is not already open.

4. In the **Toolbox**, the `Counter` control should be displayed in the **General** section.

Expand All @@ -166,7 +166,7 @@ The `Counter` control will expose a method to increment the counter, an event to

7. Drag a <xref:System.Windows.Forms.Button> control to the form, and then set the name and text properties of the button to `Test`.

8. Select and hold (or double-click) the button to open *Form1.cs* in code view and create a click handler.
8. Double-tap or double-click the button to open *Form1.cs* in code view and create a click handler.

9. In the click handler, call `counter1.Increment()`.

Expand Down