thanks to Hans! this is the trick below

```
this.KeyPress += new KeyPressEventHandler(TabbedTextBox_KeyPress); 
    void TabbedTextBox_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == '.')
       {
           e.Handled = true;
           var nextControl = this.Parent.GetNextControl(this, forward: true);
           nextControl.Focus();
       }      
    }

```

okay here is a little more detail.

this works but the "." is displayed in the text box control(not desired)

```
    this.KeyDown += new KeyEventHandler(TabbedTextBox_KeyDown);
    }
    void TabbedTextBox_KeyDown(object sender, KeyEventArgs e)
    {
        //MessageBox.Show("Event: " + e.KeyCode.ToString());
        if (e.KeyCode == Keys.Decimal || e.KeyCode == Keys.OemPeriod)
        {               
            var nextControl = this.Parent.GetNextControl(this, forward: true);
            nextControl.Focus();
        }
    }

```

when I use this event handler I cannot bind to e.keycode as it doesnt exist in the context

```
this.KeyPress += new KeyPressEventHandler(TabbedTextBox_KeyPress);
        void TabbedTextBox_KeyPress(object sender, KeyPressEventArgs e)
    {

        //MessageBox.Show("KeyPress Event: " + e.KeyChar.ToString());
        if (e.KeyChar == (char)Keys.Decimal || e.KeyChar == (char)Keys.OemPeriod)
       {
            MessageBox.Show("KeyPress Captured: " + e.KeyChar.ToString());
       }      
    }

```

I am trying to capture when the "." key is pressed as I have created a form that has IP address and I want to auto tab when the "." key is pressed. The first message box displays this message when I press the "." either on the numpad or above the ALT Key, but never enter into the if statement i have tried both 

```
if (e.KeyChar == (char)Keys.Decimal)

```

and 

```
if (e.KeyChar == (char)Keys.OemPeriod)

```

message box shows this
KeyPress Event: .

I just can't seem to figure out what the propper code is....
i have been trying to figure it out from msdn [Keys Enumeration](http://msdn.microsoft.com/en-us/library/xy8ebtbf.aspx)

```
    void TabbedTextBox_KeyPress(object sender, KeyPressEventArgs e)
    {
       MessageBox.Show("KeyPress Event: " + e.KeyChar.ToString());
        if (e.KeyChar == (char)Keys.Decimal)
       {
            MessageBox.Show("KeyPress Captured: " + e.KeyChar.ToString());
       }      
    }

```

Thanks
Jason