开发者

simple text input dialogebox

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜