.NET Framework 4.6 and 4.5
Gets the handle to the window represented by the implementer.
Type: System.IntPtrA handle to the window represented by the implementer.
Depending on the implementer, the value of the Handle property could change during the life of the window.
The following example sets the Text property of label1 to the current Handle of Form1. This example assumes that you have a Form called Form1 with a Label called label1 on it.
this.label1.Text = this.Handle.ToString();
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1