Fixed duplicate titles for US-1889327 (#1270)

* Fixed duplicate titles for US-1889327

* Implemented peer review comment.

* Implemented peer review comment for US-1889327

* Implemented peer review comment for US-1889327

* Implemented peer review comment for US-1889327

* Minor fixes for US-1889327

* Metadata updates for US-1889327
This commit is contained in:
Pooja Poojari
2022-01-13 10:49:22 -08:00
committed by GitHub
parent 2b975023e8
commit a34ff0fa72
2 changed files with 7 additions and 5 deletions
@@ -1,7 +1,8 @@
--- ---
title: How to Create an Unbound Windows Forms DataGridView Control title: Create an Unbound Windows Forms DataGridView Control
description: Populate an unbound Windows Forms DataGridView Control programmatically and display a small amount of data in a table format without binding it to a data source. description: Populate an unbound Windows Forms DataGridView Control programmatically and display a small amount of data in a table format without binding it to a data source.
ms.date: "03/30/2017" ms.date: "01/12/2022"
ms.custom: devdivchpfy22
dev_langs: dev_langs:
- "csharp" - "csharp"
- "vb" - "vb"
@@ -1,7 +1,8 @@
--- ---
title: Run Procedures at Set Intervals with Timer Component title: Run Procedures at Set Intervals with Timer Component
description: Learn how use the Windows Form Timer component to run procedures at set intervals or when a set time interval has elapsed. description: Learn how use the Windows Form Timer component to run procedures at set intervals or when a set time interval has elapsed.
ms.date: "03/30/2017" ms.date: "01/12/2022"
ms.custom: devdivchpfy22
dev_langs: dev_langs:
- "csharp" - "csharp"
- "vb" - "vb"
@@ -39,7 +40,7 @@ You might sometimes want to create a procedure that runs at specific time interv
5. At the appropriate time, set the <xref:System.Windows.Forms.Timer.Enabled%2A> property to `false` to stop the procedure from running again. Setting the interval to `0` does not cause the timer to stop. 5. At the appropriate time, set the <xref:System.Windows.Forms.Timer.Enabled%2A> property to `false` to stop the procedure from running again. Setting the interval to `0` does not cause the timer to stop.
## Example ## First code example
This first code example tracks the time of day in one-second increments. It uses a <xref:System.Windows.Forms.Button>, a <xref:System.Windows.Forms.Label>, and a <xref:System.Windows.Forms.Timer> component on a form. The <xref:System.Windows.Forms.Timer.Interval%2A> property is set to 1000 (equal to one second). In the <xref:System.Windows.Forms.Timer.Tick> event, the label's caption is set to the current time. When the button is clicked, the <xref:System.Windows.Forms.Timer.Enabled%2A> property is set to `false`, stopping the timer from updating the label's caption. The following code example requires that you have a form with a <xref:System.Windows.Forms.Button> control named `Button1`, a <xref:System.Windows.Forms.Timer> control named `Timer1`, and a <xref:System.Windows.Forms.Label> control named `Label1`. This first code example tracks the time of day in one-second increments. It uses a <xref:System.Windows.Forms.Button>, a <xref:System.Windows.Forms.Label>, and a <xref:System.Windows.Forms.Timer> component on a form. The <xref:System.Windows.Forms.Timer.Interval%2A> property is set to 1000 (equal to one second). In the <xref:System.Windows.Forms.Timer.Tick> event, the label's caption is set to the current time. When the button is clicked, the <xref:System.Windows.Forms.Timer.Enabled%2A> property is set to `false`, stopping the timer from updating the label's caption. The following code example requires that you have a form with a <xref:System.Windows.Forms.Button> control named `Button1`, a <xref:System.Windows.Forms.Timer> control named `Timer1`, and a <xref:System.Windows.Forms.Label> control named `Label1`.
@@ -145,7 +146,7 @@ private:
} }
``` ```
## Example ## Second code example
This second code example runs a procedure every 600 milliseconds until a loop has finished. The following code example requires that you have a form with a <xref:System.Windows.Forms.Button> control named `Button1`, a <xref:System.Windows.Forms.Timer> control named `Timer1`, and a <xref:System.Windows.Forms.Label> control named `Label1`. This second code example runs a procedure every 600 milliseconds until a loop has finished. The following code example requires that you have a form with a <xref:System.Windows.Forms.Button> control named `Button1`, a <xref:System.Windows.Forms.Timer> control named `Timer1`, and a <xref:System.Windows.Forms.Label> control named `Label1`.