BTT bitte.
Woher bekomme ich eine kostenlose Referenz?
Habe kein VS sondern SharpDevelop
Danke
[Edit Hab jetzt mal angefangen. Scheitere aber schon jetzt.
Helft mir mal. Ich will einfach nur die Zahlen in den Textboxen addieren(Usereingabe).
1.Weiß nicht wie ich mache.
2.Wie sprech ich Textboxen an.
Bin soweit:
namespace GeneratedForm {
using System;
using System.Windows.Forms;
class Rechner
{
static void Main()
{
Application.Run(new GeneratedForm.CreatedObject0());
int a=CreatedObject0.textBox2.text;
int b=CreatedObject0.textBox1.text;
int c=a+b;
}
}
/// <summary>
/// Add summary description for CreatedObject0
/// </summary>
public class CreatedObject0 : System.Windows.Forms.Form {
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Button button;
public CreatedObject0() {
// Must be called for initialization
this.InitializeComponents();
//
// TODO : Add constructor code after InitializeComponents
//
}
/// <summary>
/// This method was autogenerated - do not change the contents manually
/// </summary>
private void InitializeComponents() {
//
// Set up generated class CreatedObject0
//
this.SuspendLayout();
this.Size = new System.Drawing.Size(300, 160);
this.Name = "CreatedObject0";
//
// Set up member textBox2
//
textBox2 = new System.Windows.Forms.TextBox();
textBox2.Text = "";
textBox2.Name = "textBox2";
textBox2.Size = new System.Drawing.Size(272, 20);
textBox2.Location = new System.Drawing.Point(8, 104);
textBox2.TabIndex = 3;
this.Controls.Add(textBox2);
//
// Set up member textBox1
//
textBox1 = new System.Windows.Forms.TextBox();
textBox1.Text = "";
textBox1.Name = "textBox1";
textBox1.Size = new System.Drawing.Size(272, 20);
textBox1.Location = new System.Drawing.Point(8, 40);
textBox1.TabIndex = 1;
this.Controls.Add(textBox1);
//
// Set up member textBox
//
textBox = new System.Windows.Forms.TextBox();
textBox.Text = "";
textBox.Name = "textBox";
textBox.Size = new System.Drawing.Size(272, 20);
textBox.Location = new System.Drawing.Point(8, 8);
textBox.TabIndex = 0;
this.Controls.Add(textBox);
//
// Set up member button
//
button = new System.Windows.Forms.Button();
button.Name = "button";
button.TabIndex = 2;
button.Text = "Addieren";
button.Size = new System.Drawing.Size(272, 24);
button.Location = new System.Drawing.Point(8, 72);
this.Controls.Add(button);
this.ResumeLayout(false);
}
}
}
geht allerdings nicht.
[/edit]