Hi all,

I'm just starting to learn C#. What I do is I read sample code in C# and to test myself if I understand the code, I'm trying to convert the code to VB.Net. I have this particular code that I can't understand. Can somebody out there be kind enough to explain this.

Code:
class NumberBox:TextBox  // I know that this is a class inherited from Textbox
{
  public NumberBox()  //  what's the difference between this and the class declaration, what's the counterpart of this in VB.Net?
  {
    this.KeyPress+=new KeyPressEventHandler(NumberBox_KeyPress); // how do you write this in VB?
  } 
}
Thanks very much for any help.