Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Resizing web form

Reply
Thread Tools

Resizing web form

 
 
=?Utf-8?B?U2FrZXQgTXVuZHJh?=
Guest
Posts: n/a
 
      04-22-2005
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
 
Reply With Quote
 
 
 
 
Jeebu
Guest
Posts: n/a
 
      04-22-2005
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" <> wrote in message
news:8EF545DF-5B08-46F8-9DCC-...
> 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



 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2FrZXQgTXVuZHJh?=
Guest
Posts: n/a
 
      04-22-2005
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" <> wrote in message
> news:8EF545DF-5B08-46F8-9DCC-...
> > 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

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Resizing a div by resizing its borders Proper Javascript 0 04-18-2009 08:02 PM
Form resizing =?Utf-8?B?SGVyYg==?= ASP .Net 1 01-17-2006 06:30 AM
Re: Resizing Form Components David Egan HTML 1 04-26-2004 10:39 PM
Photo resizing form and accessibility Leif K-Brooks HTML 18 12-19-2003 01:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57