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.


I’m a passionate engineer based in London.
Currently, I’m working as a Cloud Consultant at Contino.

Aside my full time job, I either work on my own startup projects or you will see me in a HIIT class 🙂