Re: Bedarf an AfterLoad Ereignis
From: Arne Schittenhelm (no email)
Date: 05/31/04
- Next message: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Previous message: Arne Schittenhelm: "Re: Bedarf an AfterLoad Ereignis"
- In reply to: Arne Schittenhelm: "Re: Bedarf an AfterLoad Ereignis"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Reply: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 May 2004 21:24:20 +0200
On Mon, 31 May 2004 21:09:18 +0200, Arne Schittenhelm <> wrote:
>Kann man nicht das Enter-Ereignis des ersten Controls das aktiviert
>wird verwenden ? Eventuell ein Dummy Control das nach dem ersten
>aktivieren per enabled, visible und tabstop = false ausser Betrieb
>gesetzt ?
Also ich habe gerade mal rumprobiert...
this.textBox1.BackColor = System.Drawing.SystemColors.Control;
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.ForeColor = System.Drawing.SystemColors.Control;
this.textBox2.Text = "";
macht die dummy textbox unsichtbar.
this.textBox1.TabIndex = 0;
this.textBox1.TabStop = true;
Das erste Control das aktiviert wird. Das Enter Ereignis funktioniert
wunderbar. In der Routine steht dann:
private void textBox1_Enter(object sender, System.EventArgs e)
{
checkBox1.Checked = true;
textBox1.Enabled = false;
textBox1.TabStop = false;
machIrgendWas(); <--- oder was auch immer hier passieren soll
textBox2.Focus(); <--- nicht unbedingt notwendig
}
- Next message: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Previous message: Arne Schittenhelm: "Re: Bedarf an AfterLoad Ereignis"
- In reply to: Arne Schittenhelm: "Re: Bedarf an AfterLoad Ereignis"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Reply: Herfried K. Wagner [MVP]: "Re: Bedarf an AfterLoad Ereignis"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|