[.net] String Input Message Box?

Started by
2 comments, last by TheTroll 16 years, 11 months ago
Is there a way to simply pop up a message box similar to using MessageBox.Show() that will have a text input field for capturing a simple string from a user?
Advertisement
Found a way: http://www.mdibb.net/net/using_the_visual_basic_input_box_in_c/
Why not just create a class that does this instead of relying on the old VB functionality?

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

Create a new form named TextFieldDailog. Add the text field to it.

Create an instance of the TextFiledDialog lets name it text_Dialog.

Show the text_Dialog using the modal call so that you can't do anything else until you deal with the dialog. text_Dialog.Show_Dialog();

Much better then an old VB call.
theTroll

This topic is closed to new replies.

Advertisement