如何在消息框中输入运行时间 [英] how to input run time in messagebox
本文介绍了如何在消息框中输入运行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我在项目中创建了一个简单的项目,当用户单击按钮ank以便用户在消息框中输入一些数据时,我将进入消息框. plz给我代码如何在运行时在消息框中输入一些数据. />
谢谢你......
[我厌倦了纠正txtspk,所有小写字母,不格式化和要求代码的操作... 阅读规则!]
hello i make simple project in project i take messagebox when user click button ank to user to input some data in messagebox plz give me code how to input some data in runtime in messagebox..
thank u......
[I got tired correcting txtspk, all lowercase, no formatting and asking for code... Read the rules!]
推荐答案
如何使用输入框,因为该消息框仅用于消息.
How about using an input box because the message box is for messages only.
string value = string.empty;
if (Tmp.InputBox("User input", "Give me some code:", ref value) == DialogResult.OK)
{
MessageBox.Show("You entered: " + value);
}
祝你好运!
Good luck!
这篇关于如何在消息框中输入运行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文