Tech Off Thread

11 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Microsoft Visual C# (today error)

Back to Forum: Tech Off
  • User profile image
    Beetlejuice

    Microsoft Visual studio 2005 - C# (error 1)
    In C# type
     
    Create a WindowsApplication project.
    Create a few elements.
    Create on form StatusStrip, just drag over from toolbox.
    Add SplitButton to statusStrip...

       

     

    What do u think?

  • User profile image
    bondsbw

    I followed your steps exactly and had no error.

  • User profile image
    Beetlejuice

    ... maybe its because i run Visual studio 2005 in Virtual PC Smiley
    But everythink work excellent!

  • User profile image
    PerfectPhase

    Zip the project up and stick it on a web server so we can have a look.

  • User profile image
    Beetlejuice

    ...project new, clear, no code.
    Create in form one element StatusStrip...

  • User profile image
    PerfectPhase

    As others have said, 'works fine on my machine' Smiley

    I was just intreasted to see if there is something 'odd' about the project genereated on your machine.  If I remember I'll fire up the copy I have in a VM at work tomorrow and see if the same happens.

    What Edition of VS and what VM technology are you using?

  • User profile image
    Beetlejuice

    Microsoft Virtual PC 5.3.582.27
    Microsoft Visual Studio 2005 ver. 8.0.50727.42

  • User profile image
    Ion Todirel

    you should look inside of the InitializeComponent, then post that code here.

  • User profile image
    Beetlejuice

    private void InitializeComponent()
            {
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
                this.statusStrip1 = new System.Windows.Forms.StatusStrip();
                this.toolStripSplitButton1 = new System.Windows.Forms.ToolStripSplitButton();
                this.statusStrip1.SuspendLayout();
                this.SuspendLayout();
                //
                // statusStrip1
                //
                this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripSplitButton1});
                this.statusStrip1.Location = new System.Drawing.Point(0, 121);
                this.statusStrip1.Name = "statusStrip1";
                this.statusStrip1.Size = new System.Drawing.Size(263, 22);
                this.statusStrip1.TabIndex = 0;
                this.statusStrip1.Text = "statusStrip1";
                //
                // toolStripSplitButton1
                //
                this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
                this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
                this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
                this.toolStripSplitButton1.Name = "toolStripSplitButton1";
                this.toolStripSplitButton1.Size = new System.Drawing.Size(32, 20);
                this.toolStripSplitButton1.Text = "toolStripSplitButton1";
                //
                // Form1
                //
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(263, 143);
                this.Controls.Add(this.statusStrip1);
                this.Name = "Form1";
                this.Text = "Form1";
                this.statusStrip1.ResumeLayout(false);
                this.statusStrip1.PerformLayout();
                this.ResumeLayout(false);
                this.PerformLayout();

            }

  • User profile image
    OInter

    Hmmmm....

  • User profile image
    Ion Todirel

    Beetlejuice wrote:

    private void InitializeComponent()
            {
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
                this.statusStrip1 = new System.Windows.Forms.StatusStrip();
                this.toolStripSplitButton1 = new System.Windows.Forms.ToolStripSplitButton();
                this.statusStrip1.SuspendLayout();
                this.SuspendLayout();
                //
                // statusStrip1
                // 


                this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripSplitButton1});
                this.statusStrip1.Location = new System.Drawing.Point(0, 121);
                this.statusStrip1.Name = "statusStrip1";
                this.statusStrip1.Size = new System.Drawing.Size(263, 22);
                this.statusStrip1.TabIndex = 0;
                this.statusStrip1.Text = "statusStrip1";
                //
                // toolStripSplitButton1
                //
                this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
                this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
                this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
                this.toolStripSplitButton1.Name = "toolStripSplitButton1";
                this.toolStripSplitButton1.Size = new System.Drawing.Size(32, 20);
                this.toolStripSplitButton1.Text = "toolStripSplitButton1";
                //
                // Form1
                //
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(263, 143);
                this.Controls.Add(this.statusStrip1);
                this.Name = "Form1";
                this.Text = "Form1";
                this.statusStrip1.ResumeLayout(false);
                this.statusStrip1.PerformLayout();
                this.ResumeLayout(false);
                this.PerformLayout();

            }

    works on me. May check different versions of that project if you use a source control and ...

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.