I have been trying to design a custom tabcontrol in vb.net used a codeproject example to develop the said tabcontrol but the example is in C# I have converted all parts and theres only one error i cant seem to work around could you guys help?

C# Code Code:
  1. void ColorTabControl_ControlAdded(object sender, ControlEventArgs e)
  2.         {
  3.             if (e.Control.GetType() == typeof(TabPage))
  4.             {
  5.                 e.Control.Font = new Font(e.Control.Font, e.Control.Font.Style & ~FontStyle.Bold);
  6.             }
  7.         }
VB Code That I think it is... Code:
  1. Private Sub ColorTab_ControlAdded(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ControlEventArgs) Handles MyBase.ControlAdded
  2. ' ERROR: 'is' expected                            \/
  3.         If e.Control.GetType() = typeOf(Tabpage) Then
  4.             e.Control.Font = New Font(e.Control.Font, e.Control.Font.Style & FontStyle.Bold)
  5.         End If
  6.     End Sub

Sorry if this is the wrong section since my result code will ve in vb thats why i posted it here.