I am new to this i was wondering could tell me what is wrong with the components?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gemmabrowse
    New Member
    • Dec 2010
    • 1

    #1

    I am new to this i was wondering could tell me what is wrong with the components?

    [using System;
    using System.Collecti ons.Generic;
    using System.Componen tModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows. Forms;

    namespace picklarger
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeCompo nent();
    }

    private void Form1_Load(obje ct sender, EventArgs e);

    /// <summary>
    /// Required designer variable.
    private System.Componen tModel.IContain er 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.Disp ose();
    }
    base.Dispose(di sposing);
    }

    #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 InitializeCompo nent()
    {
    this.button1 = new System.Windows. Forms.Button();
    this.button2 = new System.Windows. Forms.Button();
    this.label1 = new System.Windows. Forms.Label();
    this.textBox1 = new System.Windows. Forms.TextBox() ;
    this.textBox2 = new System.Windows. Forms.TextBox() ;
    this.button3 = new System.Windows. Forms.Button();
    this.button4 = new System.Windows. Forms.Button();
    this.label2 = new System.Windows. Forms.Label();
    this.textBox3 = new System.Windows. Forms.TextBox() ;
    this.label3 = new System.Windows. Forms.Label();
    this.button5 = new System.Windows. Forms.Button();
    this.label4 = new System.Windows. Forms.Label();
    this.textBox4 = new System.Windows. Forms.TextBox() ;
    this.button6 = new System.Windows. Forms.Button();
    this.textBox5 = new System.Windows. Forms.TextBox() ;
    this.textBox6 = new System.Windows. Forms.TextBox() ;
    this.label5 = new System.Windows. Forms.Label();
    this.label6 = new System.Windows. Forms.Label();
    this.SuspendLay out();
    //
    // button1
    //
    this.button1.Lo cation = new System.Drawing. Point(47, 84);
    this.button1.Na me = "button1";
    this.button1.Si ze = new System.Drawing. Size(75, 23);
    this.button1.Ta bIndex = 0;
    this.button1.Te xt = "1";
    this.button1.Us eVisualStyleBac kColor = true;
    this.button1.Cl ick += new System.EventHan dler(this.butto n1_Click);
    //
    // button2
    //
    this.button2.Lo cation = new System.Drawing. Point(164, 84);
    this.button2.Na me = "button2";
    this.button2.Si ze = new System.Drawing. Size(75, 23);
    this.button2.Ta bIndex = 1;
    this.button2.Te xt = "2";
    this.button2.Us eVisualStyleBac kColor = true;
    this.button2.Cl ick += new System.EventHan dler(this.butto n2_Click);
    //
    // label1
    //
    this.label1.Aut oSize = true;
    this.label1.Loc ation = new System.Drawing. Point(3, 45);
    this.label1.Nam e = "label1";
    this.label1.Siz e = new System.Drawing. Size(294, 13);
    this.label1.Tab Index = 4;
    this.label1.Tex t = "What\'s the highest number? Click a button to make a guess!";
    //
    // textBox1
    //
    this.textBox1.L ocation = new System.Drawing. Point(61, 125);
    this.textBox1.N ame = "textBox1";
    this.textBox1.S ize = new System.Drawing. Size(43, 20);
    this.textBox1.T abIndex = 5;
    this.textBox1.T extChanged += new System.EventHan dler(this.textB ox1_TextChanged );
    //
    // textBox2
    //
    this.textBox2.L ocation = new System.Drawing. Point(182, 125);
    this.textBox2.N ame = "textBox2";
    this.textBox2.S ize = new System.Drawing. Size(43, 20);
    this.textBox2.T abIndex = 6;
    this.textBox2.T extChanged += new System.EventHan dler(this.textB ox2_TextChanged );
    //
    // button3
    //
    this.button3.Lo cation = new System.Drawing. Point(200, 236);
    this.button3.Na me = "button3";
    this.button3.Si ze = new System.Drawing. Size(75, 23);
    this.button3.Ta bIndex = 7;
    this.button3.Te xt = "Exit";
    this.button3.Us eVisualStyleBac kColor = true;
    this.button3.Cl ick += new System.EventHan dler(this.butto n3_Click);
    //
    // button4
    //
    this.button4.Lo cation = new System.Drawing. Point(47, 236);
    this.button4.Na me = "button4";
    this.button4.Si ze = new System.Drawing. Size(75, 23);
    this.button4.Ta bIndex = 8;
    this.button4.Te xt = "Next";
    this.button4.Us eVisualStyleBac kColor = true;
    this.button4.Cl ick += new System.EventHan dler(this.butto n4_Click);
    //
    // label2
    //
    this.label2.Aut oSize = true;
    this.label2.Loc ation = new System.Drawing. Point(12, 166);
    this.label2.Nam e = "label2";
    this.label2.Siz e = new System.Drawing. Size(34, 13);
    this.label2.Tab Index = 9;
    this.label2.Tex t = "count";
    //
    // textBox3
    //
    this.textBox3.L ocation = new System.Drawing. Point(61, 162);
    this.textBox3.N ame = "textBox3";
    this.textBox3.S ize = new System.Drawing. Size(43, 20);
    this.textBox3.T abIndex = 10;
    this.textBox3.T extChanged += new System.EventHan dler(this.textB ox3_TextChanged );
    //
    // label3
    //
    this.label3.Aut oSize = true;
    this.label3.Loc ation = new System.Drawing. Point(44, 206);
    this.label3.Nam e = "label3";
    this.label3.Siz e = new System.Drawing. Size(224, 13);
    this.label3.Tab Index = 11;
    this.label3.Tex t = "Click the Next button to make another choice.";
    //
    // button5
    //
    this.button5.Lo cation = new System.Drawing. Point(261, -1);
    this.button5.Na me = "button5";
    this.button5.Si ze = new System.Drawing. Size(45, 23);
    this.button5.Ta bIndex = 12;
    this.button5.Te xt = "Help!";
    this.button5.Us eVisualStyleBac kColor = true;
    this.button5.Cl ick += new System.EventHan dler(this.butto n5_Click);
    //
    // label4
    //
    this.label4.Aut oSize = true;
    this.label4.Loc ation = new System.Drawing. Point(25, 275);
    this.label4.Nam e = "label4";
    this.label4.Siz e = new System.Drawing. Size(53, 13);
    this.label4.Tab Index = 13;
    this.label4.Tex t = "Password";
    //
    // textBox4
    //
    this.textBox4.L ocation = new System.Drawing. Point(110, 275);
    this.textBox4.N ame = "textBox4";
    this.textBox4.S ize = new System.Drawing. Size(100, 20);
    this.textBox4.T abIndex = 14;
    this.textBox4.T extChanged += new System.EventHan dler(this.textB ox4_TextChanged );
    //
    // button6
    //
    this.button6.Lo cation = new System.Drawing. Point(53, 304);
    this.button6.Na me = "button6";
    this.button6.Si ze = new System.Drawing. Size(75, 23);
    this.button6.Ta bIndex = 15;
    this.button6.Te xt = "Password";
    this.button6.Us eVisualStyleBac kColor = true;
    this.button6.Cl ick += new System.EventHan dler(this.butto n6_Click);
    //
    // textBox5
    //
    this.textBox5.L ocation = new System.Drawing. Point(148, 159);
    this.textBox5.N ame = "textBox5";
    this.textBox5.S ize = new System.Drawing. Size(43, 20);
    this.textBox5.T abIndex = 16;
    this.textBox5.T extChanged += new System.EventHan dler(this.textB ox5_TextChanged );
    //
    // textBox6
    //
    this.textBox6.L ocation = new System.Drawing. Point(247, 159);
    this.textBox6.N ame = "textBox6";
    this.textBox6.S ize = new System.Drawing. Size(43, 20);
    this.textBox6.T abIndex = 17;
    this.textBox6.T extChanged += new System.EventHan dler(this.textB ox6_TextChanged );
    //
    // label5
    //
    this.label5.Aut oSize = true;
    this.label5.Loc ation = new System.Drawing. Point(107, 166);
    this.label5.Nam e = "label5";
    this.label5.Siz e = new System.Drawing. Size(41, 13);
    this.label5.Tab Index = 18;
    this.label5.Tex t = "Correct";
    //
    // label6
    //
    this.label6.Aut oSize = true;
    this.label6.Loc ation = new System.Drawing. Point(197, 165);
    this.label6.Nam e = "label6";
    this.label6.Siz e = new System.Drawing. Size(50, 13);
    this.label6.Tab Index = 19;
    this.label6.Tex t = "InCorrect" ;
    //
    // Form1
    //
    this.AutoScaleD imensions = new System.Drawing. SizeF(6F, 13F);
    this.AutoScaleM ode = System.Windows. Forms.AutoScale Mode.Font;
    this.ClientSize = new System.Drawing. Size(302, 336);
    this.Controls.A dd(this.label6) ;
    this.Controls.A dd(this.label5) ;
    this.Controls.A dd(this.textBox 6);
    this.Controls.A dd(this.textBox 5);
    this.Controls.A dd(this.button6 );
    this.Controls.A dd(this.textBox 4);
    this.Controls.A dd(this.label4) ;
    this.Controls.A dd(this.button5 );
    this.Controls.A dd(this.label3) ;
    this.Controls.A dd(this.textBox 3);
    this.Controls.A dd(this.label2) ;
    this.Controls.A dd(this.button4 );
    this.Controls.A dd(this.button3 );
    this.Controls.A dd(this.textBox 2);
    this.Controls.A dd(this.textBox 1);
    this.Controls.A dd(this.label1) ;
    this.Controls.A dd(this.button2 );
    this.Controls.A dd(this.button1 );
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHan dler(this.Form1 _Load);
    this.ResumeLayo ut(false);
    this.PerformLay out();

    }

    #endregion

    private System.Windows. Forms.Button button1;
    private System.Windows. Forms.Button button2;
    private System.Windows. Forms.Label label1;
    private System.Windows. Forms.TextBox textBox1;
    private System.Windows. Forms.TextBox textBox2;
    private System.Windows. Forms.Button button3;
    private System.Windows. Forms.Button button4;
    private System.Windows. Forms.Label label2;
    private System.Windows. Forms.TextBox textBox3;
    private System.Windows. Forms.Label label3;
    private System.Windows. Forms.Button button5;
    private System.Windows. Forms.Label label4;
    private System.Windows. Forms.TextBox textBox4;
    private System.Windows. Forms.Button button6;
    private System.Windows. Forms.TextBox textBox5;
    private System.Windows. Forms.TextBox textBox6;
    private System.Windows. Forms.Label label5;
    private System.Windows. Forms.Label label6;

    }

    }
    ]
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    Please format your code using the code tags. You can do this by selecting your code in the editor and clicking the # button above the text entry box.

    Also, please provide a more detailed description of the problem. Is it not compiling or do you get a run-time exception? Please post any error messages related to the problem you're having.

    Comment

    Working...