Move to the Next Control in the Tab Sequence

  • Thread starter Thread starter orekinbck
  • Start date Start date
O

orekinbck

Hi There

I need to write a function that accepts a C# windows form as a
parameter, then works out what control has the focus, and then gives
focus to the next control in the tab order.

Any ideas? Sample code would be greatly appreciated !

Thanks In Advance
Bill
 
Hi Bill,

Take a look at the System.Windows.Forms.Control.SelectNextControl()
function. I think that it's exactly what you want, with some parameters to
configure.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top