简体   繁体   English

如何使用 C# Windows 表格在整个 Windows 应用程序中使用相同的工具条带控件

[英]How to use Same Tool stripe controls in whole Windows Application using C# Windows Form

I want to Use Same toolstrips control on whole application Like I have a MDI for which has toolstrip and toostrips have few button I want to use these button on Child form with different functionalities any one have Git Code please share with me.我想在整个应用程序上使用相同的工具条控件就像我有一个 MDI,它有工具条和工具条有几个按钮我想在具有不同功能的子窗体上使用这些按钮任何人都有 Git 代码请与我分享。

Use inheritance.使用 inheritance。 Create a base child form with all the buttons you want then let the child forms be inherited from it.使用您想要的所有按钮创建一个基本子窗体,然后让子 forms 继承自它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM