473,386 Members | 1,741 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,386 software developers and data experts.

Window Sizing

How do I make my window appear maximized when it first opens? This is a C#
program and it's the main window. I want to use the full screen, if
possible.

Also, in the development environment itself, I can't seem to get the form to
be as big as I want it to be. In other words, it won't stretch to full size
so that I can add controls that would take up the whole screen. It only
takes up about half the screen size, and it won't scroll any further.
Nov 16 '05 #1
2 1065
> How do I make my window appear maximized when it first opens? This is a
C#
program and it's the main window. I want to use the full screen, if
possible.
look at WindowState property of the form - the last one in Properties window
Also, in the development environment itself, I can't seem to get the form to be as big as I want it to be. In other words, it won't stretch to full size so that I can add controls that would take up the whole screen. It only
takes up about half the screen size, and it won't scroll any further.


Check out Size property - or via code:
Form1.Size.Height = ... ;
Form1.Size.Width = ... ;

or shorter:
Form1.Width = ...;
Form1.Height = ...;

where you must replace "Form1" with the name of your form!
Jeti
Nov 16 '05 #2


Actually, it's not a windows form. It's an .aspx page. I'm still
having a hard time finding a property that takes care of this.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

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

Similar topics

1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
2
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script...
18
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
2
by: Peter | last post by:
I would like to automatically resize a window to its content. I was thinking of using an outer table to detect the size of my content, then use window.resizeTo( ). The problem is I'm not sure...
18
by: Roger Withnell | last post by:
I open a new window from the current window to display maps. Several maps of different sizes can be displayed. The function is given the size of the map and adjusts the window size accordingly....
1
by: deko | last post by:
When a user opens my Access database application, I would like the application window to be a certain size (but not maximized). Currently, when my app is first opened, the application window...
0
by: BobAchgill | last post by:
When I change to 1280 x 800 screen size all my Flash windows get about 20 percent bigger relative to the other controls on my main window. It appears that MS is not handling the auto sizing when...
2
by: Samuel | last post by:
The application is MDI, as soon as the application loads I create a new child window (maximized), within the child window there is a tab control almost the size of the child window The problem...
7
by: Dr J R Stockton | last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in IE6, IE7, Firefox 2, and wherever else practicable, with the control labelled F.X0 fully visible at the top of the window and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
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...

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.