473,396 Members | 1,918 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.

Resizing web form

I want to resize my web form. I want that whenever the form loads on client's
machine it opens with a defualt size specified by me. Also it should not be
possible for the user to change the dimensions of the form after it is loaded
i.e the size of the form shall remain fixed. Pls help out.

Any help is appreciated.
--
Thank You.

Saket Mundra
Nov 19 '05 #1
3 2585
hi,
u can call the form form javascript as follows

function openWindow()
{
hgt = 600;
wdth= 760;
tp= (screen.height/2)-(theHeight/2);
lt= (screen.width/2)-(theWidth/2);
ftr=
'height='+theHeight+',width='+theWidth+',top='+the Top+',left='+theLeft+",scr
ollbars=yes";
open ('page.aspx?','',features);
}

cheers
jeebu

"Saket Mundra" <Sa*********@discussions.microsoft.com> wrote in message
news:8E**********************************@microsof t.com...
I want to resize my web form. I want that whenever the form loads on client's machine it opens with a defualt size specified by me. Also it should not be possible for the user to change the dimensions of the form after it is loaded i.e the size of the form shall remain fixed. Pls help out.

Any help is appreciated.
--
Thank You.

Saket Mundra

Nov 19 '05 #2
Thanx for the help Jeebu.

I am sorry to ask this but I am new to Javascript. If you could please
explain how to call this function and where shall i put this in my code?

"Jeebu" wrote:
hi,
u can call the form form javascript as follows

function openWindow()
{
hgt = 600;
wdth= 760;
tp= (screen.height/2)-(theHeight/2);
lt= (screen.width/2)-(theWidth/2);
ftr=
'height='+theHeight+',width='+theWidth+',top='+the Top+',left='+theLeft+",scr
ollbars=yes";
open ('page.aspx?','',features);
}

cheers
jeebu

"Saket Mundra" <Sa*********@discussions.microsoft.com> wrote in message
news:8E**********************************@microsof t.com...
I want to resize my web form. I want that whenever the form loads on

client's
machine it opens with a defualt size specified by me. Also it should not

be
possible for the user to change the dimensions of the form after it is

loaded
i.e the size of the form shall remain fixed. Pls help out.

Any help is appreciated.
--
Thank You.

Saket Mundra


Nov 19 '05 #3
Thanx for the help Jeebu.

I am sorry to ask this but I am new to Javascript. If you could please
explain how to call this function and where shall i put this in my code?

"Jeebu" wrote:
hi,
u can call the form form javascript as follows

function openWindow()
{
hgt = 600;
wdth= 760;
tp= (screen.height/2)-(theHeight/2);
lt= (screen.width/2)-(theWidth/2);
ftr=
'height='+theHeight+',width='+theWidth+',top='+the Top+',left='+theLeft+",scr
ollbars=yes";
open ('page.aspx?','',features);
}

cheers
jeebu

"Saket Mundra" <Sa*********@discussions.microsoft.com> wrote in message
news:8E**********************************@microsof t.com...
I want to resize my web form. I want that whenever the form loads on

client's
machine it opens with a defualt size specified by me. Also it should not

be
possible for the user to change the dimensions of the form after it is

loaded
i.e the size of the form shall remain fixed. Pls help out.

Any help is appreciated.
--
Thank You.

Saket Mundra


Nov 19 '05 #4

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

Similar topics

0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
12
by: Søren Reinke | last post by:
Hi there I have a little problem. How do i make sure that a graph is not redrawn while the form with the graph is being resized ? I have tried to add a mouse up/down event handler on the...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
6
by: John Bowman | last post by:
Hi All, I must be missing something really obvious, so I'd appreciate someone helping me out. I have a simple Windows form that currently only has a title bar (aka the Text Property is set) and...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
13
by: Martin Ho | last post by:
I know this must be trivial for many of you. But I am playing with this and can't figure it out. I have a form, on that form is one panel which has 3 textboxes, when I run my program and...
6
by: JDeats | last post by:
I have a WinForms based application written for the .NET Framework 2.0 and in this application I need to be able to be able to take some action in code when the user finishes resizing the form. ...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.