如何重写C#控件 [英] how to rewrite c# control

查看:95
本文介绍了如何重写C#控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#中重写控件?
请告诉我一些步骤或方法来重写c#中的控件.
例如,我想在控件中添加一个按钮.

how to rewrite control in c#?
Please tell me some step or method to rewrite control in c#.
For example,I want to add a button in control.

推荐答案

请参考以下线程:
C#用户控件的示例 [ Visual C#.NET中的自定义控件 [
Please refer following threads:
Example of C# User Controls[^]
Custom Controls in Visual C# .NET[^]


创建Windows窗体应用程序.在Form1.cs [Degisn]模式下,将按钮"拖到窗体上.双击按钮,在按钮事件中编写代码.

请参考此链接
http://csharp.net-informations.com/gui/button.htm [ ^ ].

我还添加了一个链接,它介绍了gui控件.您可以支票.
Create a windows forms application. In Form1.cs[Degisn] mode, drag a "Button" onto the Form. Double click the Button, code in the button event.

Refer to this link http://csharp.net-informations.com/gui/button.htm[^].

I also add a link, it tells about gui control. You can have a check.


这篇关于如何重写C#控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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