WinForm程序设计-根据工具栏上按钮的标题调用不同的功能表单
生活随笔
收集整理的這篇文章主要介紹了
WinForm程序设计-根据工具栏上按钮的标题调用不同的功能表单
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在工具欄的ButtonClick事件中代碼如下: private void tool_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)?
{
?? switch(e.Button.Text)
??? {
?????? case "系統維護":
????????????????? tool_system_maintenance.Show();
???????????????? break;
?????? default:
????????????? break;
??? }
} ?
{
?? switch(e.Button.Text)
??? {
?????? case "系統維護":
????????????????? tool_system_maintenance.Show();
???????????????? break;
?????? default:
????????????? break;
??? }
} ?
轉載于:https://blog.51cto.com/chenxing/76283
總結
以上是生活随笔為你收集整理的WinForm程序设计-根据工具栏上按钮的标题调用不同的功能表单的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 互联网同学青年印象
- 下一篇: 个人遇到局域网不能访问解决分享