Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
private void textBox1_KeyPress (object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (Char.IsDigit(e.KeyChar) != true)
MessageBox.Show("Bitte nur Zahlen eingeben!");
}
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private int wert4DataBinding = 0;
public int Wert4DataBinding
{
get
{
return this.wert4DataBinding;
}
set
{
this.wert4DataBinding = value;
}
}
public Form1()
{
InitializeComponent();
textBox1.DataBindings.Add("Text",this,"Wert4DataBinding");
}
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
// textBox1
this.textBox1.Location = new System.Drawing.Point(192, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(120, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "textBox1";
// Form1
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(360, 166);
this.Controls.Add(this.textBox1);
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}