473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Maximizing forms in ASP.Net

mac
Hi everyone

I need your help just want to know why my webforms doest maximize i
paste the
script on the onload event
<head runat="server">
<title>Untitled Page</title>
</head>
<body onload="javascript:
window.innerWidth = screen.width
window.innerHeight = screen.height
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
">
<form id="form1" runat="server">
</form>
</body>
</html>
Is there anyway of maximizing the web forms using Java Script? or do I place
my
code on the wrong bdy of the script ? if yes please correct my code and I
want to
know where can place the code.
Thanks and Best Regards
Mac
May 12 '06 #1
1 1494
try this in the head section

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

--
Regards

John Timney
Microsoft MVP

"mac" <ma************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi everyone

I need your help just want to know why my webforms doest maximize i
paste the
script on the onload event
<head runat="server">
<title>Untitled Page</title>
</head>
<body onload="javascript:
window.innerWidth = screen.width
window.innerHeight = screen.height
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
">
<form id="form1" runat="server">
</form>
</body>
</html>
Is there anyway of maximizing the web forms using Java Script? or do I
place my
code on the wrong bdy of the script ? if yes please correct my code and I
want to
know where can place the code.
Thanks and Best Regards
Mac

May 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: nospam | last post by:
NEWS.COM Amazon wins patent for ordering forms # 6,615,226 http://tinyurl.com/m7v8 http://news.com.com/2100-1017-5070569.html In its latest patent, the online retailing giant outlined a...
0
by: pnp | last post by:
Hi all, I have an MDI container form and a few MDI children forms. The problem is that while I have set that an MDI child has a maximum size and that it cannot be maximized, when another MDI child...
2
by: sympatico | last post by:
Why can't the form be maximized in visual basic .net by double clicking the title bar like it can in visual basic 6.0? When i double click the title bar of a form in a vb .net project, it just goes...
7
by: Elmo Watson | last post by:
(using VS.net 2005 - never used DotNet WinForms til now - previously only used VB6) I have set my mdi child form to a window state of maximized. However, the first file I open is not maximized...
0
by: cvetomir.todorov | last post by:
We have an app which must be single instance. When we start the app we check if it is already running (using the Process object in the System.Diagnostics namespace) locating it by the name of the...
1
by: Brett Romero | last post by:
Let's say I have a panel docked top and a datagrid docked middle. In the panel are three columns and three rows of combo boxes and one search button. Search results are displayed in the grid. ...
3
by: kannabiran | last post by:
Hi, I used this below code to maximize window its works fine..but the maximixe icon it doesnt changed its remains as the single box alone..i need a box overlap icon while maximizing the...
6
by: David In NH | last post by:
Hi All: I've got an application that uses a browser window to display help text for the program. When the user presses a button, a help window appears (maximized) in the user's default browser....
3
by: Doc John | last post by:
In my Windows application, how can I manage the size of my child Forms within my MDI Forms? For example, when I maximize one child Form, all the other Forms maximize. And I need to conserve all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.