Changing Size of Window

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 20
Reputation: Blaine Tuisee is an unknown quantity at this point 
Solved Threads: 0
Blaine Tuisee's Avatar
Blaine Tuisee Blaine Tuisee is offline Offline
Newbie Poster

Changing Size of Window

 
0
  #1
Jun 24th, 2009
I am writing a program that has a sort of login window, i was looking for a way to resize the window so that it doesn't open so big with empty space. Any help is appreciated
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 123
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: Changing Size of Window

 
0
  #2
Jun 24th, 2009
you can open a new window using javascript window.open method, it has parameter collection to resize the window.
you can search google with javascript window open resize
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 88
Reputation: IdanS is an unknown quantity at this point 
Solved Threads: 12
IdanS IdanS is offline Offline
Junior Poster in Training

Re: Changing Size of Window

 
0
  #3
Jun 24th, 2009
Originally Posted by Blaine Tuisee View Post
I am writing a program that has a sort of login window, i was looking for a way to resize the window so that it doesn't open so big with empty space. Any help is appreciated
window.open("ur"l, "title", "height=what you want,width=what you want")

you can add to the last string more settings of the opened window like status(yes/no), toolbar (yes/no), menubar(yes/no) and more...
you can check the list of available settings in this link:
http://msdn.microsoft.com/en-us/libr...51(VS.85).aspx
in the "sFeatures" section.

enjoy
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 20
Reputation: Blaine Tuisee is an unknown quantity at this point 
Solved Threads: 0
Blaine Tuisee's Avatar
Blaine Tuisee Blaine Tuisee is offline Offline
Newbie Poster

Re: Changing Size of Window

 
0
  #4
Jun 25th, 2009
Originally Posted by IdanS View Post
window.open("ur"l, "title", "height=what you want,width=what you want")

you can add to the last string more settings of the opened window like status(yes/no), toolbar (yes/no), menubar(yes/no) and more...
you can check the list of available settings in this link:
http://msdn.microsoft.com/en-us/libr...51(VS.85).aspx
in the "sFeatures" section.

enjoy
I don't think i understand how to use this. Does this go in my Body tag or in the ASPX.cs file?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 88
Reputation: IdanS is an unknown quantity at this point 
Solved Threads: 12
IdanS IdanS is offline Offline
Junior Poster in Training

Re: Changing Size of Window

 
0
  #5
Jun 25th, 2009
Originally Posted by Blaine Tuisee View Post
I don't think i understand how to use this. Does this go in my Body tag or in the ASPX.cs file?
to your body tag in a script tag
  1. <body>
  2.  
  3. <script language="javascript">
  4. window.open("","","")
  5.  
  6. </ script>
  7. </ body>
Last edited by peter_budo; Jun 26th, 2009 at 4:06 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 20
Reputation: Blaine Tuisee is an unknown quantity at this point 
Solved Threads: 0
Blaine Tuisee's Avatar
Blaine Tuisee Blaine Tuisee is offline Offline
Newbie Poster

Re: Changing Size of Window

 
0
  #6
Jun 25th, 2009
Originally Posted by IdanS View Post
to your body tag in a script tag
<body>

<script language="javascript">
window.open("","","")

</ script>
</ body>
I added this into my body tag and it still opens up with the normal window size.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 88
Reputation: IdanS is an unknown quantity at this point 
Solved Threads: 12
IdanS IdanS is offline Offline
Junior Poster in Training

Re: Changing Size of Window

 
0
  #7
Jun 26th, 2009
Originally Posted by Blaine Tuisee View Post
I added this into my body tag and it still opens up with the normal window size.

post your code here please (the html source)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 561 | Replies: 6
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC