1
我是C#编程新手。目前,我使用下面的代码来获取用户输入,并在用户键入文本框内并按下Ok后,整个输入框关闭。用户必须每次运行该程序以获取输入框。如何保持输入框始终打开?这是一个C#程序,我使用了Microsoft.VisualBasic参考来运行代码。即使在用户按下确定按钮后,如何保持Microsoft.VisualBasic.Interaction.InputBox打开?
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
namespace Text
{
class Program
{
static void Main(string[] args)
{
string input = Microsoft.VisualBasic.Interaction.InputBox("Please Type In The Number", "Type");
if (input == "")
{
}
bool valid = false;
}
}
}