Home All Groups Group Topic Archive Search About
Author
25 Jun 2006 6:42 PM
ClearConcepts
Friends,

Currently i am working on VB.NET 2005 desktop application. We are developing
applications in 1024 * 768 resolution. Once we change the resolution say to
800 * 600 desktop application will get enlarged and will be displayed in a
totaly different manner what we designed. So what are techniques(thru code)
that may be followed on each form so that applications' display wouldn't b
get affected when screen resolutions are changed
--
Regards
ClearConcepts

Author
25 Jun 2006 7:27 PM
Michel Posseth [MCP]
No not through code ,, but with the visual designer

you should use tables and pannels and use the apropriate anchoring
property`s to keep your controls in place


regards

Michel Posseth [MCP]


Show quoteHide quote
"ClearConcepts" <techni***@peoplewareindia.com> schreef in bericht
news:%23f94HcImGHA.1676@TK2MSFTNGP05.phx.gbl...
> Friends,
>
> Currently i am working on VB.NET 2005 desktop application. We are
> developing
> applications in 1024 * 768 resolution. Once we change the resolution say
> to
> 800 * 600 desktop application will get enlarged and will be displayed in a
> totaly different manner what we designed. So what are techniques(thru
> code)
> that may be followed on each form so that applications' display wouldn't b
> get affected when screen resolutions are changed
> --
> Regards
> ClearConcepts
>
>
Author
25 Jun 2006 7:46 PM
Herfried K. Wagner [MVP]
"ClearConcepts" <techni***@peoplewareindia.com> schrieb:
> Currently i am working on VB.NET 2005 desktop application. We are
> developing
> applications in 1024 * 768 resolution. Once we change the resolution say
> to
> 800 * 600 desktop application will get enlarged and will be displayed in a
> totaly different manner what we designed. So what are techniques(thru
> code)
> that may be followed on each form so that applications' display wouldn't b
> get affected when screen resolutions are changed

Each control has 'Dock' and 'Anchor' properties.  In addition you can use
TableLayoutPanel and FlowLayoutPanel controls in .NET 2.0.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
26 Jun 2006 7:33 PM
Kevin S Gallagher
As Herfried suggested, these methods need to be explored and most likely
will save you a good deal of time down the road. Many developers have no
idea the flexibility which are provied using these properties and controls
yet within the IDE help there are full examples for you to test.

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:evu7EAJmGHA.4772@TK2MSFTNGP04.phx.gbl...
> Each control has 'Dock' and 'Anchor' properties.  In addition you can use
> TableLayoutPanel and FlowLayoutPanel controls in .NET 2.0.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
26 Jun 2006 5:45 AM
Ahmed
We are facing this problem at work. But as a solution, we design the
GUI in 800 X 600. and we limit the max size for the fram to 1024 X 768.
We also use docing and anchoring.

Ahmed
ClearConcepts wrote:
Show quoteHide quote
> Friends,
>
> Currently i am working on VB.NET 2005 desktop application. We are developing
> applications in 1024 * 768 resolution. Once we change the resolution say to
> 800 * 600 desktop application will get enlarged and will be displayed in a
> totaly different manner what we designed. So what are techniques(thru code)
> that may be followed on each form so that applications' display wouldn't b
> get affected when screen resolutions are changed
> --
> Regards
> ClearConcepts
Author
26 Jun 2006 7:12 AM
M. Posseth
In the old VB6 days  :-)

we ( the company i worked for ) had a routine that could resize the controls
dynamicly , however if the resolution became to big the text did not fit on
the controls .....

i have never seen an equivalant function for VB.Net



Show quoteHide quote
"Ahmed" wrote:

> We are facing this problem at work. But as a solution, we design the
> GUI in 800 X 600. and we limit the max size for the fram to 1024 X 768.
> We also use docing and anchoring.
>
> Ahmed
> ClearConcepts wrote:
> > Friends,
> >
> > Currently i am working on VB.NET 2005 desktop application. We are developing
> > applications in 1024 * 768 resolution. Once we change the resolution say to
> > 800 * 600 desktop application will get enlarged and will be displayed in a
> > totaly different manner what we designed. So what are techniques(thru code)
> > that may be followed on each form so that applications' display wouldn't b
> > get affected when screen resolutions are changed
> > --
> > Regards
> > ClearConcepts
>
>
Author
26 Jun 2006 11:41 AM
Ahmed
That's anchoring in .NET. You don't need to write any routine. It's in
the framework. But, if the resolution gets so big. the GUI will look
really ugly because of either alot of empy area or over striched
controls. Our idea behind developing in 800X600 is when people use this
resolution they dont get scroll bars

Ahmed
M. Posseth wrote:
Show quoteHide quote
> In the old VB6 days  :-)
>
> we ( the company i worked for ) had a routine that could resize the controls
> dynamicly , however if the resolution became to big the text did not fit on
> the controls .....
>
> i have never seen an equivalant function for VB.Net
>
>
>
> "Ahmed" wrote:
>
> > We are facing this problem at work. But as a solution, we design the
> > GUI in 800 X 600. and we limit the max size for the fram to 1024 X 768.
> > We also use docing and anchoring.
> >
> > Ahmed
> > ClearConcepts wrote:
> > > Friends,
> > >
> > > Currently i am working on VB.NET 2005 desktop application. We are developing
> > > applications in 1024 * 768 resolution. Once we change the resolution say to
> > > 800 * 600 desktop application will get enlarged and will be displayed in a
> > > totaly different manner what we designed. So what are techniques(thru code)
> > > that may be followed on each form so that applications' display wouldn't b
> > > get affected when screen resolutions are changed
> > > --
> > > Regards
> > > ClearConcepts
> >
> >
Author
26 Jun 2006 3:11 PM
M. Posseth
Hello Ahmed ,,,

I know that (see my previous posts in this thread )

i was responding to the fact that the TS was asking for a solution in code
well as i said these code solutions exist in VB6  and by my knowledge there
is not a code solution in .Net

The advantage of the code solution was that it looped through the controls
collection and changed the location and size of the controls dynamicly
according to the screen`s resolution


regards

Michel Posseth [MCP]




Show quoteHide quote
"Ahmed" wrote:

> That's anchoring in .NET. You don't need to write any routine. It's in
> the framework. But, if the resolution gets so big. the GUI will look
> really ugly because of either alot of empy area or over striched
> controls. Our idea behind developing in 800X600 is when people use this
> resolution they dont get scroll bars
>
> Ahmed
> M. Posseth wrote:
> > In the old VB6 days  :-)
> >
> > we ( the company i worked for ) had a routine that could resize the controls
> > dynamicly , however if the resolution became to big the text did not fit on
> > the controls .....
> >
> > i have never seen an equivalant function for VB.Net
> >
> >
> >
> > "Ahmed" wrote:
> >
> > > We are facing this problem at work. But as a solution, we design the
> > > GUI in 800 X 600. and we limit the max size for the fram to 1024 X 768.
> > > We also use docing and anchoring.
> > >
> > > Ahmed
> > > ClearConcepts wrote:
> > > > Friends,
> > > >
> > > > Currently i am working on VB.NET 2005 desktop application. We are developing
> > > > applications in 1024 * 768 resolution. Once we change the resolution say to
> > > > 800 * 600 desktop application will get enlarged and will be displayed in a
> > > > totaly different manner what we designed. So what are techniques(thru code)
> > > > that may be followed on each form so that applications' display wouldn't b
> > > > get affected when screen resolutions are changed
> > > > --
> > > > Regards
> > > > ClearConcepts
> > >
> > >
>
>
Author
26 Jun 2006 3:05 PM
Özden Irmak
Hello,

You can take a look at Klik! SizeLib.Net. This product's aim is exactly what
you are looking for :

http://www.kliksoft.com/?S=2&SS=11

Regards,

Özden

Show quoteHide quote
"ClearConcepts" <techni***@peoplewareindia.com> wrote in message
news:%23f94HcImGHA.1676@TK2MSFTNGP05.phx.gbl...
> Friends,
>
> Currently i am working on VB.NET 2005 desktop application. We are
> developing
> applications in 1024 * 768 resolution. Once we change the resolution say
> to
> 800 * 600 desktop application will get enlarged and will be displayed in a
> totaly different manner what we designed. So what are techniques(thru
> code)
> that may be followed on each form so that applications' display wouldn't b
> get affected when screen resolutions are changed
> --
> Regards
> ClearConcepts
>
>
Author
26 Jun 2006 11:21 PM
Dennis
It's kind of a crude way of doing it but when I want an application to run on
different screen resolutions, I write a general routine that accepts a form
then loops thru all the controls resizing them and resetting their locations
dependent on the ratio between the designed resolution and the current screen
resolution.  I also keep a set of fonts that I apply to each control in this
routine.  I then call the routine in the load event of each form.

Note that you have to customize this routine for each application, i.e,
docked controls don't need resizing, etc.
--
Dennis in Houston


Show quoteHide quote
"ClearConcepts" wrote:

> Friends,
>
> Currently i am working on VB.NET 2005 desktop application. We are developing
> applications in 1024 * 768 resolution. Once we change the resolution say to
> 800 * 600 desktop application will get enlarged and will be displayed in a
> totaly different manner what we designed. So what are techniques(thru code)
> that may be followed on each form so that applications' display wouldn't b
> get affected when screen resolutions are changed
> --
> Regards
> ClearConcepts
>
>
>