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

Forms and resolution independent display

Hello,

I have developed a simple c# .NET program in VS2005. It runs fine on
one PC. However,
on another PC, the form displays too small. It does not stretch to fill
the screen and resize
proportionately. Is there a library available to do this or how can I
do this in code so that
the form will "stretch" to fit the entire screen?

Mike McWhinney

Nov 2 '06 #1
2 2289
Hi Mike,
if you want to make the controls on your form to move dependig on the size
of the form you will need to set the Dock and Anchor properties of each
control. Setting these properties will aloow your controls to move to fill
the desired size. They will not scale the conrols just move them as their
paretn container changes in dimension.

Mark.
--
http://www.markdawson.org
"eljainc" wrote:
Hello,

I have developed a simple c# .NET program in VS2005. It runs fine on
one PC. However,
on another PC, the form displays too small. It does not stretch to fill
the screen and resize
proportionately. Is there a library available to do this or how can I
do this in code so that
the form will "stretch" to fit the entire screen?

Mike McWhinney

Nov 3 '06 #2
Thanks for the message, Mark.

However I really would like to scale or resize the controls as well.
Dock/Anchor properties won't do me much good here.

Mike
Mark R. Dawson wrote:
Hi Mike,
if you want to make the controls on your form to move dependig on the size
of the form you will need to set the Dock and Anchor properties of each
control. Setting these properties will aloow your controls to move to fill
the desired size. They will not scale the conrols just move them as their
paretn container changes in dimension.

Mark.
--
http://www.markdawson.org
"eljainc" wrote:
Hello,

I have developed a simple c# .NET program in VS2005. It runs fine on
one PC. However,
on another PC, the form displays too small. It does not stretch to fill
the screen and resize
proportionately. Is there a library available to do this or how can I
do this in code so that
the form will "stretch" to fit the entire screen?

Mike McWhinney
Nov 3 '06 #3

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

Similar topics

0
by: schwerdy | last post by:
Hi, I'm trying to write a function with pygame that takes the path to a ..jpg image and displays it in a maximized/fullscreen window. I'm stuck at pygame.display.set_mode() :-) This function...
4
by: Rex_chaos | last post by:
hi all, I am sorry for the post first for it's a very popular question here. However, I have seen thousand of post here but no one can tell me HOW TO MAKE A HOMEPAGE RESOLUTION-INDEPENDENT. I have...
2
by: Ben Amada | last post by:
Hi group. I'm going to display a low resolution image in an HTML page. On the web server, I have a high resolution version of that image. If I display the high resolution image in the browser...
1
by: i676373 | last post by:
Hi, I developed an .net 1.1 C# windows forms application, in workstation (windows xp) with dpi 1024 x 768. When I opened it at another workstation (windows 2000) with dpi 1280x1024, the windows...
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
3
by: Pure Heart | last post by:
hi i have 3 questions 1. I usa high resolution when developing but i want my application to look good even on low 800x600 resolution so whats the solution for that ? 2. I have a list view...
8
by: Tony K | last post by:
How do you maximize a child form when you show the child form. My resolution on my screen is 1440 x 900. My parent form maximizes just fine, but when I show a child form it doesn't maximize. It...
0
by: gujarsachin2001 | last post by:
Hi, Friends, I m using frames in my web application on 1024*768 resolution . I have frame page in which I am setting rows="19%,81%" (also I tried with 19%,* and 200px.*). It is showing evrything...
1
by: Greoasy | last post by:
I have an asp.net webapplication,designed in laptops having resolution 0f 1280x800. Now the same application when i run on a Desktop with a different resolution the display of the screen is...
2
vdraceil
by: vdraceil | last post by:
Hi..i work with vb6.I've created an application in 1024*768 resolution.When it is run in 1280*728 resolution,the controls in it are misaligned(not exactly as what i designed). Does anyone know how...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.