用户控制组件 [英] User Control Component

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

问题描述

我需要创建一个新的自定义.NET组件,以允许输入数字数据而不是文本.它将允许编辑其属性的数据以及由对象检查器创建事件处理程序.它应该继承自TextBox并验证数据以使其对应于数字字符串,并返回两种类型的数据:double和long.应该有一个属性bool IntegerType,如果true返回long,否则返回double ..请帮助!这不是功课! thx ..

I need to create a new customized .NET component allowing entry of numeric data rather than text. it would allow editing of data of its properties as well as creation of event handlers by object inspector. It should inherit from TextBox and validate data to correspond to a numeric string, and return two types of data, double and long. Should have a property bool IntegerType, if true returns long, else double.. please help!! This is not homework! thx..

推荐答案

我们不为他们做家庭作业.

编辑================

我强烈怀疑您声称这不是作业的准确性.既然您是一名程序员,并且知道自己的要求,那么为什么不至少自己尝试一下呢?然后,如果/如果您有问题,请回到这里,提出一个具体的问题.指望这里的某人只是整理一些代码不是正确的方式来接近我们.快速答案的目的就是为了-提供一个快速答案-对于懒惰而无法擦拭自己的肛门毛孔的玩弄者来说,不是成熟的发展.
We don''t do people''s homework for them.

EDIT ================

I strongly doubt the veracity of your claim that it''s not homework. Since you''re a programmer, and you know your requirements, why don''t you at least TRY to do it yourself? Then, if/when you have problems, come back here and ask a SPECIFIC question. Expecting someone here to just crap out some code is NOT the right way to approach us. This Quick Answer thing is expressly for that - providing a quick answer - not full-blown development for wankers that are too lazy to wipe their own anal pores.


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

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