获取控件的父窗体 - vba vb6
问题描述:
在 vba \ vb6 中,我正在寻找一个函数,该函数接收控件并返回对其放置的表单的引用.
in vba \ vb6 I'm looking for a function that receives a control and returns a reference to the form on which its placed.
Control.Container 不是我的首要任务,因为它可能是一个框架或一个图片框,然后它会迫使我遍历所有可能的容器,直到我得到它的形式.
Control.Container isn't my first priority because it may be a frame or a picturebox, and then it'll force me to iterate through all possible containers until i get to the form of it.
有更简单的方法吗?