VB programmers know that there was an inputbox dialoge box for asking user to simply input an stri开发者_JS百科ng.
I'm just curious that if there is any similar in C# or I have to use a designed form?tnx.
You can just use the visual basic function:
string returnVal = Microsoft.VisualBasic.Interaction.InputBox("Enter a string", "Title", "", -1, -1);
The same method still exists in VB.NET!
http://msdn.microsoft.com/en-us/library/6z0ak68w%28v=VS.90%29.aspx
精彩评论