注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 linux服务---DHCP
 帮助

WinForm程序设计-根据工具栏上按钮的标题调用不同的功能表单


2008-05-10 09:21:25
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://chenxing.blog.51cto.com/240526/76283
在工具栏的ButtonClick事件中代码如下:
private void tool_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) 
{
   switch(e.Button.Text)
    {
       case "系统维护":
                  tool_system_maintenance.Show();
                 break;
       default:
              break;
    }
}
 

本文出自 “半瓶香油-好男人时来运转” 博客,请务必保留此出处http://chenxing.blog.51cto.com/240526/76283





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: