C#如何弹出输入框
1、菜单栏,选择【项目】;然后在弹出的菜单中选择【添加引用】

3、使用命名空间Microsoft.VisualBasic。添加代码:usingMicrosoft.外狒芙梨VisualBasic;

5、调用VB中的InputBox,输入一串字符串。给button添加代码:stringstr=Interaction.InputBox("请输入字符串","字符串","",100,100).Interaction.InputBox的格式:string Interaction.InputBox(string Prompt,string title,string Defaultresponce,int Xpos,int Ypose)

7、调试情况:点击按钮,弹出一个输入框;输入字符串,Label显示文本;
