zoukankan      html  css  js  c++  java
  • Messagebox.Show()常用参数设置

    private void button1_Click(object sender, EventArgs e)
            {
                MessageBox.Show("  1  个参数 "
                    );
            }

    private void button2_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 2 个参数。。 ",
                                     "亮仔提示"
                                     );
            }
    View Code

      

    private void button3_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 3 个参数。。。 ",
                                    " 亮仔提示",
                                    MessageBoxButtons.YesNoCancel
                                    );
            } 
    View Code

    private void button4_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 4 个参数。。。  ",
                                    " 亮仔提示",
                                    MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Warning
                                    );
            }
    View Code

                 

    private void button5_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 5 个参数。。 。  ",
                                    " 亮仔提示",
                                    MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Warning,
                                    MessageBoxDefaultButton.Button2
                                    );
            }
    View Code

    private void button6_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 6 个参数。。。  ",
                                    " 亮仔提示",
                                    MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Warning,
                                    MessageBoxDefaultButton.Button2,
                                    MessageBoxOptions.RtlReading      //ServiceNotification//.RightAlign   // 标题向右对齐。
                                    );
     
            }
    View Code

      private void button7_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 7 个参数。。帮助菜单不可用。。。。。  ",
                                    " 亮仔提示",
                                    MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Warning,
                                    MessageBoxDefaultButton.Button2,
                                    MessageBoxOptions.RightAlign,
                                    true   // 标题向右对齐。。。。。                                );
     
            }
    View Code

       private void button8_Click(object sender, EventArgs e)
            {
                MessageBox.Show(" 7 个参数。帮助菜单    可用。   ",
                                    " 亮仔提示",
                                    MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Warning,
                                    MessageBoxDefaultButton.Button2,
                                   MessageBoxOptions.RightAlign  ,   // 要使用默认风格,此处参数可设为 0    
                                    @"C:Documents and SettingsAdministrator桌面新建文本文档.txt"
                                    );
            }
    View Code

  • 相关阅读:
    Xshell_Plus破解永久版绿色安装使用
    springboot接入mybatis管理数据库
    idea 配置依赖管理Gradle
    破解版Navicat安装使用
    Centos8安装 python3并保留系统的python2
    windows 命令行 jps查看java进程没有反应,如何用jps查看java进程
    @ConfigurationProperties 无法将yml或properties中的内容读取到bean
    Python 生成requirement 使用requirements.txt
    优秀的博客网站
    将application.yml放到jar包外
  • 原文地址:https://www.cnblogs.com/zxbzl/p/3529973.html
Copyright © 2011-2022 走看看