private void btnShow_Click(object sender, EventArgs e) { MessageTip.ShowOk(txbText.Text); //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试")); //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试")); //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试")); //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试")); //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试")); }
private void btnShow_Click(object sender, EventArgs e) { try { MessageTip.Show(txbMultiline.Text, _style); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnShow_Click(object sender, EventArgs e) { if (txbIcon.TextLength != 0 && !File.Exists(txbIcon.Text)) { MessageBox.Show("图片不存在!"); return; } try { MessageTip.Show(txbText.Text, txbIcon.TextLength == 0 ? null : Image.FromFile(txbIcon.Text)); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnEnter_Click(object sender, EventArgs e) { MessageTip.Show((ToolStripItem)sender, txbMultiline.Text); }
private void btnShowInPanel_Click(object sender, EventArgs e) { MessageTip.Show(panel1, txbMultiline.Text); }
private void btnError_Click(object sender, EventArgs e) { MessageTip.ShowError(txbMultiline.Text); }
private void btnWarning_Click(object sender, EventArgs e) { MessageTip.ShowWarning(txbMultiline.Text); }
private void btnOk_Click(object sender, EventArgs e) { MessageTip.ShowOk(txbText.Text); }
private void btnTestItem_Click(object sender, EventArgs e) { MessageTip.ShowOk((ToolStripItem)sender, txbText.Text); }
private void btnError_Click(object sender, EventArgs e) { //MessageTip.ShowError(txbText.Text); MessageTip.Show(txbText.Text, TipIcon.Error); }
private void btnWarning_Click(object sender, EventArgs e) { //MessageTip.ShowWarning(txbText.Text); MessageTip.Show(txbText.Text, TipIcon.Warning); }
private void btnOk_Click(object sender, EventArgs e) { //MessageTip.ShowOk(txbText.Text); MessageTip.Show(txbText.Text, TipIcon.Ok); }