' ______________________________________
If scvSetup.IsInitialized = False Then
scvSetup.Initialize(0)
root.AddView(scvSetup, 1%x, 0%y, 98%x, 100%y)
For Each myItem As View In pnlServer.GetAllViewsRecursive '<--- myItem already declared as View.
Try ' <--- Don't use this in your code, except special cases (access to external sources), not in this one.
If myItem <> Null Then ' <--- could it be null?
myItem.RemoveView
scvSetup.panel.AddView(myItem, myItem.Left, myItem.Top, myItem.Width, myItem.Height)
End If
Catch
Log(LastException)
End Try
Next
'scvSetup.Panel.Height = 1000dip'pnlSetup.Height
scvSetup.Panel.Height = 170%y'pnlSetup.Height
scvSetup.Panel.Width = 100%x'pnlSetup.Width
End If
scvSetup.ScrollPosition = 0
scvSetup.Visible = True