如何验证textedit创建的运行时 [英] How to validated textedit created runtime

查看:115
本文介绍了如何验证textedit创建的运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




所有大部分表格控件都是在运行时创建的。



好​​的,这是我有一个表单,我创建一个tabpage,它包含一个groupbox,它包含几个控件,situacion是如何从groupbox验证特定的textedit。



为每个选项卡创建所有这些控件。

解决方案

这很简单。您必须添加 Control.Validating事件 [ ^ ]。您需要做的就是定义事件处理程序委托 [ ^ ]。

Hi
Firt of all most of the form controls are created on runtime.

Ok, This is the situation I have a form where I create a tabpage, and it contain a groupbox and this contains several controls, the situacion is how to validad a specific textedit from the groupbox.

All those controls are created for each tab.

解决方案

It's quite simple. You have to add Control.Validating event[^]. All you need to do is to define event handler delegate[^].


这篇关于如何验证textedit创建的运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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