从现有控件创建新控件 [英] Creating New Control From Already Existing Control

查看:64
本文介绍了从现有控件创建新控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请Plz告诉我通过继承现有控件创建新用户控件的步骤.

Hi,
Will you Plz tel me a steps to create a new user control by inheriting from already existing control.

推荐答案

您完全按照您说的做,继承自现有控件,并编写代码以根据需要进行更改.
You do exactly what you said, inherit from the existing control and write code to change it as you''d want.


我假设您知道如何创建用户控件.对?如果您不知道该怎么写,请从那里开始学习.但是,如果您确实知道(我假设您知道的话),那么可以创建一个新类,然后将父类更改为您要从其继承的类.简单的.嗯!
I am assuming you know how to create User Controls. Right? If you don''t know how to write one, start there to learn. But if you do know, which I assume you do, then create a new one then change the parent class to one you want to inherit from. Simple. Huh!


这篇关于从现有控件创建新控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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