VBプログラマ質問スレ(6.0以前) Part35
■ このスレッドは過去ログ倉庫に格納されています
0235228
NGNGコントロールの親フレーム
Command1.Container.Name
フレームの子コントロール
Function Controls(Frame As Frame) As Collection
Dim Control As Control
Set Controls = New Collection
For Each Control In Frame.Parent
If Control.Container Is Frame Then
Controls.Add Control
End If
Next
End Function
使い方
Dim Control As Control
For Each Control In Controls(Form1.Frame1)
Debug.Print Control.Name
Next
■ このスレッドは過去ログ倉庫に格納されています