|
Subject:
|
Controlling brower attributes from VB.net web app
|
|
Posted By:
|
jmyers
|
Post Date:
|
12/4/2003 2:04:14 PM
|
How can I control IE 6.0 web browser window size, placement, and other attributes (don't display menu, titlebar, toolbar, etc.) from a VB.net web application so the browser window will be sized to 800 x 600, centered on the screen, and have no browser controls displayed, when my application runs?
|
|
Reply By:
|
planoie
|
Reply Date:
|
12/5/2003 12:18:32 PM
|
if you want to remove toolbars and the status bar, you need to open a new window and close the previous. Usually, only by opening a new window can you shut off those items. From that point, you can manipulate the browser window's size and position. None of this is built into VB.net, you need to do it all in the html with javascript.
You can use window.moveTo and window.resizeTo to change the position and size (respectively) of the window. Here's something that might be useful, it has a bunch of properties of the screen and window objects in JavaScript that provide information that you can use.
http://www.geekdork.com/samples/dhtml/DHTMLPositioningTest.htm
Peter ------------------------------------------------------ Work smarter, not harder.
|
|