Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Signals the object that initialization is starting.
public:
void BeginInit();
public void BeginInit();
abstract member BeginInit : unit -> unit
Public Sub BeginInit ()
The following code example demonstrates how to use the ISupportInitialize interface to initialize three TrackBar controls.
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar1))->BeginInit();
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar2))->BeginInit();
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar3))->BeginInit();
this->SuspendLayout();
//
// trackBar1
//
this->trackBar1->Location = System::Drawing::Point( 160, 400 );
this->trackBar1->Name = "trackBar1";
this->trackBar1->TabIndex = 1;
this->trackBar1->Scroll += gcnew System::EventHandler( this, &Form1::trackBar_Scroll );
//
// trackBar2
//
this->trackBar2->Location = System::Drawing::Point( 608, 40 );
this->trackBar2->Name = "trackBar2";
this->trackBar2->TabIndex = 2;
this->trackBar2->Scroll += gcnew System::EventHandler( this, &Form1::trackBar_Scroll );
//
// trackBar3
//
this->trackBar3->Location = System::Drawing::Point( 56, 40 );
this->trackBar3->Name = "trackBar3";
this->trackBar3->TabIndex = 3;
this->trackBar3->Scroll += gcnew System::EventHandler( this, &Form1::trackBar_Scroll );
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar1))->EndInit();
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar2))->EndInit();
(dynamic_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar3))->EndInit();
trackBar1.BeginInit();
trackBar2.BeginInit();
trackBar3.BeginInit();
SuspendLayout();
//
// trackBar1
//
trackBar1.Location = new Point(160, 400);
trackBar1.Name = "trackBar1";
trackBar1.TabIndex = 1;
trackBar1.Scroll += trackBar_Scroll;
//
// trackBar2
//
trackBar2.Location = new Point(608, 40);
trackBar2.Name = "trackBar2";
trackBar2.TabIndex = 2;
trackBar2.Scroll += trackBar_Scroll;
//
// trackBar3
//
trackBar3.Location = new Point(56, 40);
trackBar3.Name = "trackBar3";
trackBar3.TabIndex = 3;
trackBar3.Scroll += trackBar_Scroll;
trackBar1.EndInit();
trackBar2.EndInit();
trackBar3.EndInit();
CType(trackBar1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(trackBar2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(trackBar3, System.ComponentModel.ISupportInitialize).BeginInit()
SuspendLayout()
'
'trackBar1
'
trackBar1.Location = New Point(160, 400)
trackBar1.Name = "trackBar1"
trackBar1.TabIndex = 1
'
'trackBar2
'
trackBar2.Location = New Point(608, 40)
trackBar2.Name = "trackBar2"
trackBar2.TabIndex = 2
'
'trackBar3
'
trackBar3.Location = New Point(56, 40)
trackBar3.Name = "trackBar3"
trackBar3.TabIndex = 3
CType(trackBar1, System.ComponentModel.ISupportInitialize).EndInit()
CType(trackBar2, System.ComponentModel.ISupportInitialize).EndInit()
CType(trackBar3, System.ComponentModel.ISupportInitialize).EndInit()
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in