我正在使用像这样的输入框
private void Form1_Load(object sender, EventArgs e)
{
string host = "localhost";
Interaction.InputBox("Database Information", "Host", host);
}
这是完美的但是如何在单击确定
时使用新键入的文本更新字符串主机答案 0 :(得分:0)
回报:
private void Form1_Load(object sender, EventArgs e)
{
string host = "localhost";
host = Interaction.InputBox("Database Information", "Host", host);
}