Skip to content

Commit 055a391

Browse files
authored
Merge pull request #1275 from dotnet/publish-24248
2 parents 750928d + 032c8c7 commit 055a391

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

dotnet-desktop-guide/framework/winforms/controls/how-to-create-an-unbound-windows-forms-datagridview-control.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
title: How to Create an Unbound Windows Forms DataGridView Control
2+
title: Create an Unbound Windows Forms DataGridView Control
33
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.
4-
ms.date: "03/30/2017"
4+
ms.date: "01/12/2022"
5+
ms.custom: devdivchpfy22
56
dev_langs:
67
- "csharp"
78
- "vb"

dotnet-desktop-guide/framework/winforms/controls/run-procedures-at-set-intervals-with-wf-timer-component.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Run Procedures at Set Intervals with Timer Component
33
description: Learn how use the Windows Form Timer component to run procedures at set intervals or when a set time interval has elapsed.
4-
ms.date: "03/30/2017"
4+
ms.date: "01/12/2022"
5+
ms.custom: devdivchpfy22
56
dev_langs:
67
- "csharp"
78
- "vb"
@@ -39,7 +40,7 @@ You might sometimes want to create a procedure that runs at specific time interv
3940

4041
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.
4142

42-
## Example
43+
## First code example
4344

4445
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`.
4546

@@ -145,7 +146,7 @@ private:
145146
}
146147
```
147148
148-
## Example
149+
## Second code example
149150
150151
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`.
151152

dotnet-desktop-guide/framework/wpf/graphics-multimedia/property-animation-techniques-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This topic describes the different approaches for animating properties: storyboa
8484

8585
## Clock Animations
8686

87-
Use <xref:System.Windows.Media.MediaPlayer.Clock%2A> objects when you want to animate without using a <xref:System.Windows.Media.Animation.Storyboard> and you want to create complex timing trees or interactively control animations after they start. You can use Clock objects to animate a dependency property of any <xref:System.Windows.Media.Animation.Animatable> object.
87+
Use <xref:System.Windows.Media.Animation.Clock> objects when you want to animate without using a <xref:System.Windows.Media.Animation.Storyboard> and you want to create complex timing trees or interactively control animations after they start. You can use Clock objects to animate a dependency property of any <xref:System.Windows.Media.Animation.Animatable> object.
8888

8989
You cannot use <xref:System.Windows.Media.Animation.Clock> objects directly to animate in styles, control templates, or data templates. (The animation and timing system actually does use <xref:System.Windows.Media.Animation.Clock> objects to animate in styles, control templates, and data templates, but it must create those <xref:System.Windows.Media.Animation.Clock> objects for you from a <xref:System.Windows.Media.Animation.Storyboard>. For more information about the relationship between <xref:System.Windows.Media.Animation.Storyboard> objects and <xref:System.Windows.Media.Animation.Clock> objects, see the [Animation and Timing System Overview](animation-and-timing-system-overview.md).)
9090

0 commit comments

Comments
 (0)