mobile 用html格式文本提示notify

来源:互联网 发布:四大人工智能业务 编辑:程序博客网 时间:2024/06/06 09:32

private void menuItem5_Click(object sender, EventArgs e)
{
    StringBuilder HTMLString = new StringBuilder();
    HTMLString.Append("<--<html><body>");
    HTMLString.Append("Submit data?");
    HTMLString.Append("<form method=/'GET/' action=notify>");
    HTMLString.Append("<input type='submit'>");
    HTMLString.Append("<input type=button name='cmd:2' value='Cancel'>");
    HTMLString.Append("</body></html>-->");

    //Set the Text property to the HTML string.
    notification1.Text = HTMLString.ToString();
    notification1.Caption = "Notification Demo";
    notification1.Critical = false;

    // Display icon up to 10 seconds.
    notification1.InitialDuration = 10;
    notification1.Visible = true;
}

原创粉丝点击