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

c# winform scaling

hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi

Nov 16 '05 #1
7 3793
Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi

Nov 16 '05 #2
tnx a lot!
know how do i scale my panels and textboxes?
"Lloyd Dupont" wrote:
Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi


Nov 16 '05 #3
You could try BKResizer at
http://users.tpg.com.au/hbk02542/pro...izer/about.htm to add
resolution independence to your winform apps.

regards,
bill

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.com...
tnx a lot!
know how do i scale my panels and textboxes?
"Lloyd Dupont" wrote:
Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi


Nov 16 '05 #4
Just use the Anchor and Dock properties of the controls to allow them to
resize accordingly with the form. It takes a bit of planning at design
time, but it's well worth the effort.

- Glen

jozsi wrote:
tnx a lot!
know how do i scale my panels and textboxes?
"Lloyd Dupont" wrote:

Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:B0**********************************@micros oft.com...
hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi


Nov 16 '05 #5
Well in my apps, I use the docking property to autoscale and move objects in
a form.
If the size of the form changes, the size of textareas and trees and other
things change too.

For Example:
U want to have some labels and textfields in the upper part of your window.
the labels should
have a fixed size and the textfields should resize with the size of the
window.
If u want more than one textfield and label, u need 3 panel.
put the label in panel2 and the textfields in panel3.
put panel2 and panel3 in panel1. then set the dock of panel2 to left and the
dock of panel3 to center.
then put panel1 in the mainwindow and set the dock to top.
that's it. should look like the MS Outlook window for writing emails. like
the To, CC, and about fields.
maybee u have to play a bit with the option "foreground" and "background" of
the panels and fields and labels.
depending on how u set this, it looks good or crappy.

And if something is not possible to build with the dock property, then i add
a listener to the
window resized event and do the resizing by myselfe.

but i did'nt need it until now.
"jozsi" <jo***@discussions.microsoft.com> schrieb im Newsbeitrag
news:45**********************************@microsof t.com...
tnx a lot!
know how do i scale my panels and textboxes?
"Lloyd Dupont" wrote:
Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
> hi
>
> i developed my application for window resolution 1280*1024
>
> now i have a remote maschine using a window resolution of 1024*768
>
> is there a easy way to scale alle the object in the form?
>
> tnx for help!
> greetings
> joszi
>


Nov 16 '05 #6
Tom
And how exactly will this solve his problem? Jozsi has already designed
and implemented his user interface.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #7
tnx a lot for the answers.
i thing, i can handle the problem with the font size and where needed i will
recalculate the size of the controls like listview.
greetings
joszi

"jozsi" wrote:
hi

i developed my application for window resolution 1280*1024

now i have a remote maschine using a window resolution of 1024*768

is there a easy way to scale alle the object in the form?

tnx for help!
greetings
joszi

Nov 16 '05 #8

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

Similar topics

2
by: anonymouse | last post by:
We have a number of machiens with VS.NET 2003 installed and on every machine, the forms in the designer are comming out different sizes and when we build and run the app (without code changes) they...
0
by: Colin | last post by:
Hi, It seems vs.net does some automatic scaling in the ide. like if i take a project develloped under 96 dpi low res and load it under 120 dpi hi res it does all kinds of automatic resizing. this...
1
by: Yongseung Kim | last post by:
Hi, I would like to describe as clear as I can(sorry my english is quite limited) 1. I made a project with vb.net on english XP Pro (The project has a winform with several general controls...
1
by: susie_richie_30 | last post by:
Hi, I am trying to apply gray scaling to color as well as black/white images. I have tried using the pixel by pixel approach to achieve the scaling. But the particular approach has a issue with...
0
by: Steven | last post by:
Hello, I have a problem in scaling printing. I use standard print dialog. When I click the button of "Property" in this dialog, it shows the printer's property dialog. As usual, there is a...
0
by: Steven | last post by:
Hello, I have a problem in scaling printing. I use standard print dialog. When I click the button of "Property" in this dialog, it shows the printer's property dialog. As usual, there is a...
3
by: Larry Serflaten | last post by:
I am taking a 256 color bitmap from a file and scaling it up X 16 to a 32bppPARGB bitmap in memory. I copy that image to the screen. After scaling, the edges of all the lines and colors are...
3
by: Sharon | last post by:
On VS 2003 I have on a form textbox and 3 buttons , the buttons are aligned and keep the same line , I want the Gui to keep the same ratio when resizing the form Say 90% textbox and 10%...
17
by: IanIpp | last post by:
We have a 3 month old quad processor/dual core server running SQL Server 2005 and already it is getting close to hitting the CPU wall. An 8 way CPU box is prohibitively expensive and out of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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.