473,473 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WinForm sizing problem in different computers

Hi,

I've come across a strange problem with the WinForm's sizing.
I've designed a WinForm and it runs fine on my computer and some other
PCs. But when I was trying to run the app under some PCs with wide
screen, some of my controls on the WinForm will automatic resize
themselves to be bigger and thus push other controls off the screen.
For a sample of this problem, please see http://usctimes.com/screen.jpg
.. The screen on the left is what it normally look like in my PC, and
the screen on the right is what it looks like on the problematic PCs.
Notices that the red retangle part of the controls were pushed off the
screen. I've tried changing the font DPI settings on the problematic
PCs, but the result is still the same. I've also tried various Anchor
options, but it won't solve the problem.

I'm using VS 2005 running .Net 2.0 on my project. Any help is
greatly appreciated!

Mar 18 '07 #1
5 10535
VJ
Hello,

Did you also try looking at Dock property. Anchor and Dock go hand in hand
for such issues. Normal such issues happen when you design screens at higher
resloution and take it to PCs with lower resloutions like a 800X600 and
yours looks very similar.

Let me know if you still have issues!
VJ

<la*****@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
Hi,

I've come across a strange problem with the WinForm's sizing.
I've designed a WinForm and it runs fine on my computer and some other
PCs. But when I was trying to run the app under some PCs with wide
screen, some of my controls on the WinForm will automatic resize
themselves to be bigger and thus push other controls off the screen.
For a sample of this problem, please see http://usctimes.com/screen.jpg
. The screen on the left is what it normally look like in my PC, and
the screen on the right is what it looks like on the problematic PCs.
Notices that the red retangle part of the controls were pushed off the
screen. I've tried changing the font DPI settings on the problematic
PCs, but the result is still the same. I've also tried various Anchor
options, but it won't solve the problem.

I'm using VS 2005 running .Net 2.0 on my project. Any help is
greatly appreciated!

Mar 18 '07 #2
Hi VJ,

Thanks for your tips. Actually I designed the layout in
800x600 and the above issue happens when I use the program in a
machine that has 1280x768. The cut off controls are all have docking
setting set to "None", and Anchored to their closest panel edge (e.g.
the controls that are closer to the left edge of the panel is Anchored
to the left & top, the controls that are closer to the right edge of
the panel is Ancored to the right & top, etc...). I've also tried
changing the screen resolution to the exact same resolution as the
problematic PC in my development machine, but the software functioned
correctly on my machine.

It seems that text in the controls are all enlarged thus made
the buttons too big to fit in the fixed sized panel. See
http://usctimes.com/screen2.jpg . The lower screens are the the
correct result. The Anchor settings are as follow:
Title label and textbox : Left, Top
Group label, dropdown, and New Group Button: right, top
Description label, textbox: left, bottom
Search Key: right, bottom

Thanks for any tips!

On Mar 18, 8:00 am, "VJ" <nonewsaddr...@yahoo.comwrote:
Hello,

Did you also try looking at Dock property. Anchor and Dock go hand in hand
for such issues. Normal such issues happen when you design screens at higher
resloution and take it to PCs with lower resloutions like a 800X600 and
yours looks very similar.

Let me know if you still have issues!
VJ

<lamx...@gmail.comwrote in message

news:11*********************@n76g2000hsh.googlegro ups.com...
Hi,
I've come across a strange problem with the WinForm's sizing.
I've designed a WinForm and it runs fine on my computer and some other
PCs. But when I was trying to run the app under some PCs with wide
screen, some of my controls on the WinForm will automatic resize
themselves to be bigger and thus push other controls off the screen.
For a sample of this problem, please seehttp://usctimes.com/screen.jpg
. The screen on the left is what it normally look like in my PC, and
the screen on the right is what it looks like on the problematic PCs.
Notices that the red retangle part of the controls were pushed off the
screen. I've tried changing the font DPI settings on the problematic
PCs, but the result is still the same. I've also tried various Anchor
options, but it won't solve the problem.
I'm using VS 2005 running .Net 2.0 on my project. Any help is
greatly appreciated!- Hide quoted text -

- Show quoted text -

Mar 18 '07 #3
Upon further testing, I found that the problem is due to the font DPI
setting. After I've set the Font DPI setting to Large(120%) and
REBOOT the computer (I did not reboot on previous trials), the problem
happened in my development PC as well. Is there anyway to force the
DPI settings to normal on the application?

On Mar 18, 12:10 pm, lamx...@gmail.com wrote:
Hi VJ,

Thanks for your tips. Actually I designed the layout in
800x600 and the above issue happens when I use the program in a
machine that has 1280x768. The cut off controls are all have docking
setting set to "None", and Anchored to their closest panel edge (e.g.
the controls that are closer to the left edge of the panel is Anchored
to the left & top, the controls that are closer to the right edge of
the panel is Ancored to the right & top, etc...). I've also tried
changing the screen resolution to the exact same resolution as the
problematic PC in my development machine, but the software functioned
correctly on my machine.

It seems that text in the controls are all enlarged thus made
the buttons too big to fit in the fixed sized panel. Seehttp://usctimes.com/screen2.jpg. The lower screens are the the
correct result. The Anchor settings are as follow:
Title label and textbox : Left, Top
Group label, dropdown, and New Group Button: right, top
Description label, textbox: left, bottom
Search Key: right, bottom

Thanks for any tips!

On Mar 18, 8:00 am, "VJ" <nonewsaddr...@yahoo.comwrote:
Hello,
Did you also try looking at Dock property. Anchor and Dock go hand in hand
for such issues. Normal such issues happen when you design screens at higher
resloution and take it to PCs with lower resloutions like a 800X600 and
yours looks very similar.
Let me know if you still have issues!
VJ
<lamx...@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
Hi,
I've come across a strange problem with the WinForm's sizing.
I've designed a WinForm and it runs fine on my computer and some other
PCs. But when I was trying to run the app under some PCs with wide
screen, some of my controls on the WinForm will automatic resize
themselves to be bigger and thus push other controls off the screen.
For a sample of this problem, please seehttp://usctimes.com/screen.jpg
. The screen on the left is what it normally look like in my PC, and
the screen on the right is what it looks like on the problematic PCs.
Notices that the red retangle part of the controls were pushed off the
screen. I've tried changing the font DPI settings on the problematic
PCs, but the result is still the same. I've also tried various Anchor
options, but it won't solve the problem.
I'm using VS 2005 running .Net 2.0 on my project. Any help is
greatly appreciated!- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Mar 18 '07 #4
VJ
You are saying you set resloution as needed in your PC, designed windows
and controls. Now ran the application it on client machine with same
resloution, and still had it issues?

There is also a AutoScale, AutoSize (If available and supported by the
control). That can be used to control or Windows appearance. Please do read
about them understand the effects of these and make changes. MSDN
documentation is really good on these topics

VJ

<la*****@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
Hi VJ,

Thanks for your tips. Actually I designed the layout in
800x600 and the above issue happens when I use the program in a
machine that has 1280x768. The cut off controls are all have docking
setting set to "None", and Anchored to their closest panel edge (e.g.
the controls that are closer to the left edge of the panel is Anchored
to the left & top, the controls that are closer to the right edge of
the panel is Ancored to the right & top, etc...). I've also tried
changing the screen resolution to the exact same resolution as the
problematic PC in my development machine, but the software functioned
correctly on my machine.

It seems that text in the controls are all enlarged thus made
the buttons too big to fit in the fixed sized panel. See
http://usctimes.com/screen2.jpg . The lower screens are the the
correct result. The Anchor settings are as follow:
Title label and textbox : Left, Top
Group label, dropdown, and New Group Button: right, top
Description label, textbox: left, bottom
Search Key: right, bottom

Thanks for any tips!

On Mar 18, 8:00 am, "VJ" <nonewsaddr...@yahoo.comwrote:
>Hello,

Did you also try looking at Dock property. Anchor and Dock go hand in
hand
for such issues. Normal such issues happen when you design screens at
higher
resloution and take it to PCs with lower resloutions like a 800X600 and
yours looks very similar.

Let me know if you still have issues!
VJ

<lamx...@gmail.comwrote in message

news:11*********************@n76g2000hsh.googlegr oups.com...
Hi,
I've come across a strange problem with the WinForm's sizing.
I've designed a WinForm and it runs fine on my computer and some other
PCs. But when I was trying to run the app under some PCs with wide
screen, some of my controls on the WinForm will automatic resize
themselves to be bigger and thus push other controls off the screen.
For a sample of this problem, please seehttp://usctimes.com/screen.jpg
. The screen on the left is what it normally look like in my PC, and
the screen on the right is what it looks like on the problematic PCs.
Notices that the red retangle part of the controls were pushed off the
screen. I've tried changing the font DPI settings on the problematic
PCs, but the result is still the same. I've also tried various Anchor
options, but it won't solve the problem.
I'm using VS 2005 running .Net 2.0 on my project. Any help is
greatly appreciated!- Hide quoted text -

- Show quoted text -


Mar 18 '07 #5
On Mon, 19 Mar 2007 04:01:43 +0800, <la*****@gmail.comwrote:
[...]Is there anyway to force the
DPI settings to normal on the application?
Not really, and there are good reasons for not forcing your own idea of
"correct size" on the user anyway.

Instead, you should work harder to allow your application to deal with in
a user-friendly manner the USER's own choice in how they want (or in many
cases, need) their computer to look.
Mar 20 '07 #6

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

Similar topics

5
by: | last post by:
I have ASP code displaying currency datatype data from Access database. I have copies of this asp code and tha database on two w2k/IIS5 computers, bothg having the decimal symbol set to "." in...
2
by: Ryan | last post by:
Special character is displayed differently on 2 computers with the same browser version (Internet Explorer 6.0). String.fromCharCode(9425) is displayed: - a letter b with a circle around it....
2
by: learning_C++ | last post by:
Hi, I found some example code about server and client applications. But I can not run server and client in different computers. Now, I only run them in the different windows in Linux. I hope to...
6
by: david epsom dot com dot au | last post by:
I have a report with an OLE bound frame. A bitmap has been pasted into the bound field. The bitmap displays and prints differently on different computers. In particular, the alignment is...
6
by: dale zhang | last post by:
Hi, I build a web form with a 4-cell table on the top (flawlayout), followed by some labels and textboxes (gridlayout). The web form is displayed well in dell m60 laptop with all resolution...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
1
by: Jeff9458526 | last post by:
Hello, I am a newbie to access databases and I have a database that has several OLE objects. I need to be able to share this database between several computers and I was wondering how to store the...
1
by: maheshgupta024 | last post by:
Im very new to PHP, and interseted in network stuff, using php can i enter into different computers from network within my LAN. Can anyone help on this.. Thanks in Advance
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
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...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.