请问,在VB中怎样搜索符合条件的窗体

来源:百度知道 编辑:UC知道 时间:2024/05/18 02:03:26
打个比方,我的这个工程有100个窗体,其中每个窗体有很多Label,每个Label的Caption值都不同,我想搜索其中Label(index).caption=1的窗体,怎样搜索啊?谁知道?我是新手,没有积分,请大家海涵,我的QQ是250080138,如果谁知道的,告诉我,我用RMB代替积分

RMB省下吧

if Label(index).caption=1 then text1.text=text1.text & Label(index).Parent.Caption

这只是一个例子,Label(index).Parent.Caption 就是你要的窗体标题,要这个窗体标题做什么还看你的程序了。