Re: Bedarf an AfterLoad Ereignis

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Arne Schittenhelm (no email)
Date: 05/31/04


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
}



Relevant Pages

  • Re: Decisions, Decisions...
    ... your methods state that splinters are limited to a maximum of 15 dummy ... I don't see 6D as a cuebid showing second-round control as being ... option showing a very strong hand with serious interest in slam (say ...
    (rec.games.bridge)
  • Re: Subform Focus Issue
    ... A dummy "focus-catcher" is certainly the most common (and the only way I'm ... The main part of the form and the subform are related via their ... > want to be able to lock every control on the subform, ...
    (microsoft.public.access.forms)
  • Re: Change Event cant reference .text property
    ... Combobox doesn't send the focus to any other control. ... the error and Me.ActiveControl.Name returns the name Dummy, ... This is definately a bug. ...
    (microsoft.public.access.forms)
  • Re: Cirrus (Logic CS 4614/22/24) Sound Chip - FC3 SOLVED
    ... I opened up the Gnome volume control and looked clear in the ... guessing 'Dummy Audio Control'. ... I have enabled the sound server at the user and root ... > Also sometimes a combination of switches need to be used. ...
    (Fedora)
  • Re: Keyboard
    ... Es gibt auch noch die von vielen Anwendungen genutzte Möglichkeit, ... Eingabemethode automatisch zu aktivieren, wenn ein eingabefähiges Control ...
    (microsoft.public.de.german.windowsce.entwickler)