Start by checking in the debugger: as CPallini says, it's likely that your richTextBox1 is not a valid control - which presumably means you created it in your code instead of allocating it via the designer. So it won't be displayed either!
Look at the designer, highlight the rich text box you think is going to get the user input, and look at the properties pane to find it's name. Use that in your Click event handler, instead of richTextBox1 and it may start to work.
But... what do you think this code does?
string text = richTextBox1.Text.Replace( "", "");
Why are you trying to replace an empty string with an empty string?
The code you are using to insert your "0x" and commas is a little odd as well: Consider using a StringBuilder instead, or better break your input string into the hex digits first, then convert them to "0xNN" and use String.Join to add all the commas - it's a "cleaner" solution that is a lot easier to read! :laugh: