delphi 获得控件所在的窗体


本文整理自网络,侵删。

 获得控件所在的窗体
需要引用单元:Vcl.Forms

function GetParentForm(Control: TControl; TopForm: Boolean = True): TCustomForm;



示例:

GetParentForm(Edit1);

相关阅读 >>

Delphi android 启动卡死处理方法

Delphi入门语法

Delphi monthoftheyear、weekoftheyear、weekofthemonth、dayoftheyear … 相对时间

Delphi版的创建高权限进程

Delphi 获取一个文件夹下的一级目录

Delphi 关闭android安卓程序

Delphi xe, xe10, 创建 activeform 和 activex 工程的方法

Delphi idhttp超时重定向

Delphi 获取电脑进程网络连接ip端口

Delphi xe10.1 andriod app中文名称

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...

    暂无评论...