简单的消息提示
2016-03-21 10:44
190 查看
//时间控件事件
protected
void Timer1_Tick(object sender, EventArgs e)
{
if (Label4.Text != "0")//如果有消息执行显示
{
if (num % 2 == 1)
{
Image2.Visible = false;
}
else if (num % 2 == 0)
{
Image2.ImageUrl = "~/img/hava.jpg";
Image2.Visible = true;
}
num++;
}
//不过状态栏里老是有提示——下载图片。
protected
void Timer1_Tick(object sender, EventArgs e)
{
if (Label4.Text != "0")//如果有消息执行显示
{
if (num % 2 == 1)
{
Image2.Visible = false;
}
else if (num % 2 == 0)
{
Image2.ImageUrl = "~/img/hava.jpg";
Image2.Visible = true;
}
num++;
}
//不过状态栏里老是有提示——下载图片。