ISupportInitialize.BeginInit Method
.NET Framework 4.5
Signals the object that initialization is starting.
Namespace: System.ComponentModel
Assembly: System (in System.dll)
The following code example demonstrates how to use the ISupportInitialize interface to initialize three TrackBar controls.
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.Location = new System.Drawing.Point(160, 400); this.trackBar1.Name = "trackBar1"; this.trackBar1.TabIndex = 1; this.trackBar1.Scroll += new System.EventHandler(this.trackBar_Scroll); // // trackBar2 // this.trackBar2.Location = new System.Drawing.Point(608, 40); this.trackBar2.Name = "trackBar2"; this.trackBar2.TabIndex = 2; this.trackBar2.Scroll += new System.EventHandler(this.trackBar_Scroll); // // trackBar3 // this.trackBar3.Location = new System.Drawing.Point(56, 40); this.trackBar3.Name = "trackBar3"; this.trackBar3.TabIndex = 3; this.trackBar3.Scroll += new System.EventHandler(this.trackBar_Scroll); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.