A
Afshan Gul
Guest
I am making a Window Form application with C#. It was well until Buttons Weren't Opening an another form. I have seen other post about this but this exact problem isn't there. I don't need to close. Make it easy enough to follow for future users or they will ask again
So this is "start.Designer.cs" Where this is the form that is open when started
using System;
using System.Globalization;
using System.Windows.Forms;
namespace Abu__Yousaf__Micrs
{
partial class start
{
private const int V = 1;
public int screenWidth;
public int screenHeight;
DateTime D = DateTime.UtcNow;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.time = new System.Windows.Forms.Label();
this.scicalc = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Roboto Condensed", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(273, 38);
this.label1.TabIndex = 0;
this.label1.Text = "Abu Yousaf MicroOs";
//
// time
//
this.time.AutoSize = true;
this.time.Font = new System.Drawing.Font("Roboto Condensed", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.time.Location = new System.Drawing.Point(292, 13);
this.time.Name = "time";
this.time.Size = new System.Drawing.Size(0, 19);
this.time.TabIndex = 0;
//
// scicalc
//
this.scicalc.Location = new System.Drawing.Point(20, 64);
this.scicalc.Name = "scicalc";
this.scicalc.Size = new System.Drawing.Size(178, 28);
this.scicalc.TabIndex = 1;
this.scicalc.Text = "Scientific Calculator";
this.scicalc.UseVisualStyleBackColor = true;
//
// start
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 23F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.ClientSize = new System.Drawing.Size(1370, 749);
this.Controls.Add(this.scicalc);
this.Controls.Add(this.time);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Roboto Condensed", 14.3F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
this.MinimizeBox = false;
this.Name = "start";
this.Text = "Start";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label time;
private Button scicalc;
private void scicalc_Click(object sender, EventArgs e)
{
new scicalc().Show();
}
}
}
This was "start.Designer.cs" If you are asking for "start.cs" it is the default Window Form. I haven't changed it.
"scicalc.Designer.cs" and "scicalc.cs" hasn't been changed, it is the default Windows Form.
If you want the rest of the files. I have already said it!
Continue reading...
So this is "start.Designer.cs" Where this is the form that is open when started
using System;
using System.Globalization;
using System.Windows.Forms;
namespace Abu__Yousaf__Micrs
{
partial class start
{
private const int V = 1;
public int screenWidth;
public int screenHeight;
DateTime D = DateTime.UtcNow;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.time = new System.Windows.Forms.Label();
this.scicalc = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Roboto Condensed", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(273, 38);
this.label1.TabIndex = 0;
this.label1.Text = "Abu Yousaf MicroOs";
//
// time
//
this.time.AutoSize = true;
this.time.Font = new System.Drawing.Font("Roboto Condensed", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.time.Location = new System.Drawing.Point(292, 13);
this.time.Name = "time";
this.time.Size = new System.Drawing.Size(0, 19);
this.time.TabIndex = 0;
//
// scicalc
//
this.scicalc.Location = new System.Drawing.Point(20, 64);
this.scicalc.Name = "scicalc";
this.scicalc.Size = new System.Drawing.Size(178, 28);
this.scicalc.TabIndex = 1;
this.scicalc.Text = "Scientific Calculator";
this.scicalc.UseVisualStyleBackColor = true;
//
// start
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 23F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.ClientSize = new System.Drawing.Size(1370, 749);
this.Controls.Add(this.scicalc);
this.Controls.Add(this.time);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Roboto Condensed", 14.3F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
this.MinimizeBox = false;
this.Name = "start";
this.Text = "Start";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label time;
private Button scicalc;
private void scicalc_Click(object sender, EventArgs e)
{
new scicalc().Show();
}
}
}
This was "start.Designer.cs" If you are asking for "start.cs" it is the default Window Form. I haven't changed it.
"scicalc.Designer.cs" and "scicalc.cs" hasn't been changed, it is the default Windows Form.
If you want the rest of the files. I have already said it!
Continue reading...