Re: How to find control with focus?
From: Peter Steele (psteele_at_ciena.com)
Date: 02/19/04
- Next message: goodieauk: "How do you get the Form Desinger to recognise custom code?"
- Previous message: Chris Jackson: "Re: Dynamically Change URL of web service"
- In reply to: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Next in thread: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Reply: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 12:54:34 -0800
Actually, there are no panels or groups. The text boxes are direct children
of the form and their tab stops are numbered from 1 through 4...
Peter
"Stoitcho Goutsev (100) [C# MVP]" <100@100.com> wrote in message
news:uu9Pwmw9DHA.2316@TK2MSFTNGP11.phx.gbl...
> Hi Peter,
> Probably because your textboxes are placed on a panel or other kind of
> control. Controls collection keeps references to the immediate children
> only. I suppose your textboxes are grand- or grand-grand-, etc children of
> the form.
>
> --
> B\rgds
> 100
>
> "Peter Steele" <psteele@ciena.com> wrote in message
> news:ufJVcew9DHA.2168@TK2MSFTNGP12.phx.gbl...
> > That did the trick--thanks very much. I'm curious though--why did my
loop
> > not work?
> >
> > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> > news:ODxsCRw9DHA.3880@TK2MSFTNGP11.phx.gbl...
> > > * "Peter Steele" <psteele@ciena.com> scripsit:
> > > > I have a form with four text fields, each with sequentially ordered
> > > > tabstops. I want to have the fields recognize the return key and
> > > > automatically shift the focus to the next control. I created the
> > following
> > > > event handler that I've assigned to the KeyUp event of each of the
> > TextBox
> > > > controls:
> > >
> > > Have a look at the form's 'ActiveControl' property.
> > >
> > > --
> > > Herfried K. Wagner [MVP]
> > > <http://www.mvps.org/dotnet>
> >
> >
>
>
- Next message: goodieauk: "How do you get the Form Desinger to recognise custom code?"
- Previous message: Chris Jackson: "Re: Dynamically Change URL of web service"
- In reply to: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Next in thread: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Reply: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to find control with focus?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|