WPF C# InputBox

前端 未结 6 869
予麋鹿
予麋鹿 2020-12-02 17:57

I am building a WPF application using C#. I want to pop out a dialog box to prompt the user to enter his/her name. After that I will keep track of the name and save some dat

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 18:18

    Create/Add a new Window in your project for taking input from the user. You can then use Window.Show or Window.ShowDialog to show that window as a pop up Window

    Also add an OK button n created window and on OK button click save the information in the text file

提交回复
热议问题