maybe you can get the code of your original form1.designer file there are all the controls declared in your project and there are also the event declared if i remember right, (correct me if i am wrong).
this is the code of a old form.desginer.cs file of one of my C# project maybe it can help you:
Code:
namespace Pong
{
partial class frmMain
{
/// <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.components = new System.ComponentModel.Container();
this.Timer = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// Timer
//
this.Timer.Tick += new System.EventHandler(this.Timer_Tick);
//
// frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(390, 326);
this.Name = "frmMain";
this.Text = "Form1";
this.Load += new System.EventHandler(this.frmMain_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Timer Timer;
}
}
Good Luck,
Jelte.