具体实现方法:
1.添加引用 Microsoft.Visual Basic
2.using Microsoft.Visual Basic
这样就可以在代码中调用Inputbox类库了。
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = Interaction.InputBox("参数1", "参数2", "参数3", 200, 200);
}
2.实现内容提示的换行。
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = Interaction.InputBox("参数1/n参数4", "参数2", "参数3", 200, 200);
}