一个有按钮的面板 [英] a pannel which have Buttons

查看:80
本文介绍了一个有按钮的面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


在某些项目中有一个pannel,它有一些按钮用于保存,编辑,搜索和...

并将其转换为a dll并以各种形式使用。在那里形成没有必要在每个表单中创建按钮和编写代码。

为你准备了一个dll吗?



非常感谢很多

hi
in some projects there are a pannel which have some buttons for save, edit, search and ...
and convert it to a dll and use in all forms. there form it is not necessary to create buttons and write code in each form.
have you a prepared dll for me?

thanks very much

推荐答案

听起来需要创建一个自定义控件... MSDN [ ^ ]此处还有关于CodeProject的文章 - 例如编写自定义控件:一步一步 [ ^ ]



你的声音听起来很复杂,所以我建议慢慢来 - 比如说只需要一个面板和一些按钮 - 一开始没有功能,只是为了证明你可以构建控件并使用它。然后开始向其中一个按钮添加功能并从那里继续前进。



如果/遇到问题然后回来发布一个问题,包括代码片段你遇到了问题,
Sounds like to need to create a custom control ... there is a full set of articles on MSDN[^] and there are also articles here on CodeProject - e.g. Writing your Custom Control: step by step[^]

Yours sounds like it is going to be quite complex, so I advise taking it slowly - e.g. just get a panel together with some buttons on it - no functionality at first, just to prove you can build the control and use it. Then start by adding functionality to one of the buttons and move on from there.

If/when you hit problems then come back and post a question, including the code snippet you're having the problem with,


这篇关于一个有按钮的面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆