What's wrong with my code? It returns this error on the first line:
Unable to cast object of type 'Telerik.WinControls.UI.Docking.HostWindow' to type 'Telerik.WinControls.UI.Docking.ToolWindow'.
Unable to cast object of type 'Telerik.WinControls.UI.Docking.HostWindow' to type 'Telerik.WinControls.UI.Docking.ToolWindow'.
For Each ToolWindow As Docking.ToolWindow In RadDock1.DockWindows.ToolWindows If ToolWindow.Name = "FormActivityDetailEdit1" Then Dim MyLocation As Point Dim MySize As Size MyLocation.X = 50 MyLocation.Y = 50 MySize.Width = 1090 MySize.Height = 700 ToolWindow.Float(MyLocation, MySize) End IfNext