Automating QTP Test Automation Home Automation Articles Downloads QTP Gotchas Links Books Contact About Site Map
Browser Function - ResizeThis sub resizes the browser to the specified size. If you find an error, or have a suggestion for improvement, Email me and I'll fix it. Download it Here (right-click and then save target as). (NOTE - you can just cut & paste from below, but the formatting will have multiple spaces instead of tabs).
'=========================================================================
Sub zBro_Resize(iTop, iLeft, iWidth, iHeight) Browser("micclass:=Browser").Object.Top = cstr(iTop) Browser("micclass:=Browser").Object.Left = cstr(iLeft) Browser("micclass:=Browser").Object.Width = cstr(iWidth) Browser("micclass:=Browser").Object.Height = cstr(iHeight) End Sub '========================================================================= |