473,403 Members | 2,366 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,403 software developers and data experts.

Screen resolution independent app

Hi

How can I develop a screen resolution independent winform app in vb.net? Do
I need a third party tool to achieve this?

Thanks

Regards
Dec 4 '07 #1
6 5114
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Hi

How can I develop a screen resolution independent winform app in vb.net?
Do I need a third party tool to achieve this?
NO!! Just write code to move controls around as the main form size change.
You can either use the layoutchange event or the resize event. There are
also options built into dot net to do some of it automatically (Dock and
Anchor properties) but it's not always possible to achieve a perfect result
with them. There are third party controls available but imo they are a waste
of time because doing it yourself is so easy. One thing I would suggest is
if you have multiple controls that you need to move around the form as a
group then place them on a panel.

Michael
Dec 5 '07 #2
"John" <Jo**@nospam.infovis.co.ukschrieb:
How can I develop a screen resolution independent winform app in vb.net?
Do I need a third party tool to achieve this?
What features do you want to be provided? In other words, what's your
definition of a "screen resolution independent" Windows Forms application?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Dec 5 '07 #3
I want the app to fit on screen in both 800x600 and 1024x768.

Thanks

Regards

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"John" <Jo**@nospam.infovis.co.ukschrieb:
>How can I develop a screen resolution independent winform app in vb.net?
Do I need a third party tool to achieve this?

What features do you want to be provided? In other words, what's your
definition of a "screen resolution independent" Windows Forms application?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Dec 5 '07 #4
John wrote:
How can I develop a screen resolution independent winform app in vb.net?
(1) Handle the Form's Layout event and put control-positioning code
therein.
Remember that each "container" control gets its /own/ Layout event; the
Form doesn't have to do it all, any more.

or

(2) Override the OnLayout method and do the same thing.
This is a better alternative if you're creating a "base" Form from which
you intend to inherit /other/ forms. If you go this way, remember to
MyBase.OnLayout() at the end of your routine.

or

(3) Use the Anchor and Dock properties on each Control to get them to
move and resize themselves as the user resizes the window.

Personally, I favour either of the first two, because I've had problems
where VB "forgets" about all the stuff I've set up with properties
(especially when working with inherited Forms).

/Always/ "build small, allow for more".

Design at 800x600 (or whatever /minimum/ resolution you intend to
support) but allow the form to resize to use anything larger.

HTH,
Phill W.
Dec 5 '07 #5
You also can use TableLayoutPanel control and use dock property of other
control..

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:#0*************@TK2MSFTNGP06.phx.gbl...
Hi

How can I develop a screen resolution independent winform app in vb.net?
Do I need a third party tool to achieve this?

Thanks

Regards
Dec 5 '07 #6
"John" <Jo**@nospam.infovis.co.ukschrieb:
>I want the app to fit on screen in both 800x600 and 1024x768.
Well, that's supported out of the box. Simply set the form's 'WindowState'
property to 'Maximized' and use docking, anchoring and the tablelayoutpanel
and flowlayoutpanel controls.

Note that increasing the size of the controls does not make much sense
because it will make using the application harder if controls get very large
or small.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Dec 5 '07 #7

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

Similar topics

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: Mustufa Baig | last post by:
Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution. As I am...
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...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
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...
1
by: nasima khan | last post by:
Hi, i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code. Sub ChangeRes(X...
5
by: John | last post by:
Hi I have been developing apps with screen size 800x600 for maximum compatibility. I am just wondering if I should start my newest app with screen size 1024x768. What is the commonly used...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
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
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
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
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...
0
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,...

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.