473,779 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3813
Forms have an AutoSclae property by default equals to true.
just change the font of your font, that might do the trick...

"jozsi" <jo***@discussi ons.microsoft.c om> wrote in message
news:B0******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:B0******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:45******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:B0******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:B0****** *************** *************@m icrosoft.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***@discussi ons.microsoft.c om> schrieb im Newsbeitrag
news:45******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:B0******** *************** ***********@mic rosoft.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
1297
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 appear different on every machine. Why? We disabled auto scaling of fonts we locked the form yet nothing helps. Any ideas why this is happening and how to fix it?
0
1629
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 is undesirable, how do you turn it off? I have a function that scales forms on the fly (form param). but now i realize that changing the dpi messes up the scaling. i need to take the dpi into consideration but the formulas i've tried don't scale...
1
2393
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 such as Textbox, label, groupbox) 2. I copied the project to a PC installed with korean XP Pro.
1
1825
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 high mega pixel images. Is there any other approach that can be applied to achieve the gray scaling and also have a reasonable performance?
0
1281
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 function of "scaling" in the printer's property dialog. But how can I get the value of this "scaling" in C#.net? Could you tell me the method? Thanks.
0
1216
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 function of "scaling" in the printer's property dialog. But how can I get the value of this "scaling" in C#.net? Could you tell me the method? Thanks.
3
2561
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 blurred. I want the edges all crisp, including inherent pixelation (jaggies). Setting smoothing to none, or adjusting the composting mode on the Graphics object still
3
3558
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% buttons
17
2649
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 question. I am looking desperately for a way to TRULY scale out SQL server...in the same way that IIS can be scaled out via App Center. The "in the box" solution for SQL Server 2005 scaling out is the DMV. Unfortunately this solution makes...
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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 we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.