-4

I need to ask a question for the user. I would like them to enter the ID who's record they want to see. The user should input the ID. How can I do that in C#?

Felix An
  • 309
  • 4
  • 13

1 Answers1

1

You need to use vb input box. Add a reference to Microsoft.VisualBasic, InputBox is in the Microsoft.VisualBasic.Interaction namespace

Add do something like:

 string input = Microsoft.VisualBasic.Interaction.InputBox("Prompt", "Title", "Default", 0, 0);
Emmanuel N
  • 7,350
  • 2
  • 26
  • 36