2
我想知道是否有一种方法可以让我在每天的某个特定时间显示消息框。例如在时间段内激活
if (DateTime >= 11:59)
{
messagebox.show("Good Morning");
}
else if (DateTime == 12:00 to 16:59)
{
messagebox.show("Good Afternoon");
}
else if (DateTime <= 17:00)
{
messagebox.show("Good Evening");
}
如果有办法做到这一点,请帮助我。谢谢。
好的。谢谢。我会测试它,看看它回来了。 – Sachin