Get user data from textbox in C# windows form application

Getting the user data from a textbox is extremely easy in C#. You can get the data and display it by just using two methods. Video tutorial is at the bottom of the post 🙂

Yes, that’s it! MessageBox is responsible for handling operations related to the Dialog window. I think every C# app will use the Dialog window. The method show of MessageBox class is responsible for displaying it on the screen. We pass in the text of the textbox so it will display it.

  MessageBox.Show(textbox.Text);