C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,818 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We find "form examples" for C# with "InitializeComponent()" as follows. Since the forms are important to test the example, is there any utility for regenerating the controls on the form from the "IntializeComponent()"?
TIA
private void InitializeComponent()
{
this.listView1 = new System.Windows.Forms.ListView();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// listView1
//
this.listView1.HideSelection = false;
this.listView1.Location = new System.Drawing.Point(13, 12);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(508, 278);
this.listView1.TabIndex = 0;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.UseWaitCursor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(13, 303);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(112, 23);
this.button2.TabIndex = 1;
this.button2.Text = "Fill List";
this.button2.UseVisualStyleBackColor = true;
this.button2.UseWaitCursor = true;
this.button2.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.ClientSize = new System.Drawing.Size(533, 338);
this.Controls.Add(this.button2);
this.Controls.Add(this.listView1);
this.Name = "Form1";
this.Load += new System.EventHandler(this.Form1_Load_1);
this.ResumeLayout(false);
}