using inputbox;
using Microsoft.VisualBasic;
{
string msg, title, df;
object myvalue;
msg = "input";
title = "test";
df = "bb";
myvalue = Interaction.InputBox(msg, title, df);
if ((string)myvalue=="")
{
myvalue = df;
Interaction.MsgBox("MyValue=" + myvalue.ToString(), MsgBoxStyle.OkOnly | MsgBoxStyle.Information, "C# Msgbox Demo");
}
else {
Interaction.MsgBox("Hello, " + myvalue.ToString() + "!"+Environment.NewLine+"Nice to meet you",MsgBoxStyle.OkOnly|MsgBoxStyle.Information,"C# Demo");
}
}
https://www.youtube.com/watch?v=LEsl_psykrQ&t=4s
ไม่มีความคิดเห็น:
แสดงความคิดเห็น