• 0

[Visual C#.NET]Application Running Setup


Question

2 answers to this question

Recommended Posts

  • 0
  OrenTuil said:

Hi Guys,

I use Visual C#.NET 2003 to build a Web Application. Now a problem is: when we run the application, an internet window is opened at a standard size. I'd like to have it opened "maximized" (taking all the screen size).

Does anybody know how to do this?

Thanks,

Oren.

Use javascript to set the browser window size. Look at the window object and the screen object.

  • 0
  weenur said:

Use javascript to set the browser window size. Look at the window object and the screen object.

:jump: Thanks! I searched through the internet to learn a minimum of Javascript, then I founded that people already wrote the answer to that problem.

Here is what I found at: http://www.dynamicdrive.com

<script language="JavaScript1.2">
<!--

/***********************************************
* Auto Maximize Window Script- ? Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.