1.返回字符串
winform:
屏幕宽度:Screen.PrimaryScreen.Bounds.Width;
屏幕高度:Screen.PrimaryScreen.Bounds.Height;
using Microsoft.VisualBasic;
String PM = Interaction.InputBox("请输入密码", "输入密码", "", Screen.PrimaryScreen.Bounds.Width / 3, Screen.PrimaryScreen.Bounds.Height / 4);
2.基本的yes/ok
if
(MessageBox.Show(
"提示信息"
,
"提示"
, MessageBoxButtons.YesNo) == DialogResult.Yes)
{
MessageBox.Show(
"点了是(Y)"
);
}
else
{
MessageBox.Show(
"点了否(N)"
);
}