C# is case sensitive. RichTextBox1 is not the same as richtextbox1 and TextBox1 is not the same as textbox1