Private Sub UserControl_Initialize()
Label1(0).AutoSize = True
Label1(0).Container = TPicture(0)
WB(0).Container = WPIcture(0)
TPicture(0).Move 0, 0
WPIcture(0).Move 0, TPicture(0).Height
Label1(0).Move (TPicture(0).Width - Label1(0).Width) / 2, (TPicture(0).Height - Label1(0).Height) / 2
WB(0).Move -20, -20, WPIcture(0).Width + 40, WPIcture(0).Height + 40 '把WB放到Picture容器里的作用是,去掉WB打开网页时出现凹入的3D效果
End Sub
Label1(0).AutoSize = True
Label1(0).Container = TPicture(0)
WB(0).Container = WPIcture(0)
TPicture(0).Move 0, 0
WPIcture(0).Move 0, TPicture(0).Height
Label1(0).Move (TPicture(0).Width - Label1(0).Width) / 2, (TPicture(0).Height - Label1(0).Height) / 2
WB(0).Move -20, -20, WPIcture(0).Width + 40, WPIcture(0).Height + 40 '把WB放到Picture容器里的作用是,去掉WB打开网页时出现凹入的3D效果
End Sub

