Group box control Tab Focus problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sujathaeeshan
    New Member
    • Feb 2008
    • 22

    Group box control Tab Focus problem

    Hi,
    I am having 3 buttons and Group box control having only one child Grid control...3 buttons n groupbox are child controls of VIEW

    I am having tab indexlike Groupbox(0),Gri d (child contorl) as(0),
    then for 3 buttons like 1,2,3....

    But I have written like

    private void DataGrid_KeyDow n(object sender, KeyEventArgs e)
    {
    if (e.KeyCode == Keys.Tab)
    {

    groupbox.Select NextControl(Dat aGrid, true, true, false, false);
    e.Handled = true;
    }
    }
    But this is not working.....

    Please help me out of this problem...

    Thanx in advance for your replies....
    Suji
Working...