PictureBox包含问题
请问下大家,动态添加的控件,比如Picture1(0),Picture2(0),要怎样将Picture2(0)放在Picture1(0)里?我使用.parent属性为什么不行?还报错?谢谢!
[解决办法]
Private Declare Function SetParent Lib "user32 " (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub Command1_Click()
Load Picture2(1)
Picture2(1).Visible = True
SetParent Picture2(1).hWnd, Picture1(0).hWnd
Picture2(1).Move 0, 0
End Sub