devxlogo

ActiveX Object Size

ActiveX Object Size

Question:
Can I set the object height & width in VBScript to the current size of the browser?

Answer:
Using the InternetExplorer object, you can access the Height and Widthproperties, which indicate the size of the HTML viewing frame of InternetExplorer. Your code will look something like this:

MyControl.Height = InternetExplorer.HeightMyControl.Width = InternetExplorer.Width

devx-admin

Share the Post: