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

Screen Resolutions

Me
I am about to roll out a vb.net 2003 app for screens
using 1024x768.

However some users will only have 800x600. Is there
a quick method of scaling down the screens already written
(e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, only
textboxes, listviews, forms and buttons.

TIA
Me
Nov 20 '05 #1
5 1298
* "Me" <an*******@discussions.microsoft.com> scripsit:
I am about to roll out a vb.net 2003 app for screens
using 1024x768.

However some users will only have 800x600. Is there
a quick method of scaling down the screens already written
(e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, only
textboxes, listviews, forms and buttons.


Have a look at the controls' 'Anchor' and 'Dock' properties and/or at
the form's 'Scale' method.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Cor
Hi Me,

I never used it (written 10 minutes ago), however when I saw your message I
had to think on this.
You can try it,

Can be fun with a timer I did think: zooming in and out, but to keep it
simple for you I did not paste that code in.

Give some message if it works for you?

Cor

\\\
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Me.Width = CInt(Me.Width * 0.8)
Me.Height = CInt(Me.Height * 0.8)
Dim nada As New doCtr(Me)
End Sub
End Class
Public Class doCtr
Public Sub New(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
ctr.Left = CInt(ctr.Left * 0.8)
ctr.Top = CInt(ctr.Top * 0.8)
ctr.Width = CInt(ctr.Width * 0.8)
ctr.Height = CInt(ctr.Height * 0.8)
Dim newdoCtr As _
New doCtr(ctr)
Next
End Sub
///

However some users will only have 800x600. Is there
a quick method of scaling down the screens already written
(e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, only
textboxes, listviews, forms and buttons.

TIA
Me

Nov 20 '05 #3
Me
Yes that's just what's needed - nice and quick too.
-Your timer idea also sounds like a nice 'feature' to
try on someone...

Thanks
-----Original Message-----
Hi Me,

I never used it (written 10 minutes ago), however when I saw your message Ihad to think on this.
You can try it,

Can be fun with a timer I did think: zooming in and out, but to keep itsimple for you I did not paste that code in.

Give some message if it works for you?

Cor

\\\
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click
Me.Width = CInt(Me.Width * 0.8)
Me.Height = CInt(Me.Height * 0.8)
Dim nada As New doCtr(Me)
End Sub
End Class
Public Class doCtr
Public Sub New(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
ctr.Left = CInt(ctr.Left * 0.8)
ctr.Top = CInt(ctr.Top * 0.8)
ctr.Width = CInt(ctr.Width * 0.8)
ctr.Height = CInt(ctr.Height * 0.8)
Dim newdoCtr As _
New doCtr(ctr)
Next
End Sub
///

However some users will only have 800x600. Is there
a quick method of scaling down the screens already written (e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, only textboxes, listviews, forms and buttons.

TIA
Me

.

Nov 20 '05 #4
Me
I forgot to ask... How can I tell the current
Screen res ?

Thanks
Me
-----Original Message-----
Hi Me,

I never used it (written 10 minutes ago), however when I saw your message Ihad to think on this.
You can try it,

Can be fun with a timer I did think: zooming in and out, but to keep itsimple for you I did not paste that code in.

Give some message if it works for you?

Cor

\\\
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click
Me.Width = CInt(Me.Width * 0.8)
Me.Height = CInt(Me.Height * 0.8)
Dim nada As New doCtr(Me)
End Sub
End Class
Public Class doCtr
Public Sub New(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
ctr.Left = CInt(ctr.Left * 0.8)
ctr.Top = CInt(ctr.Top * 0.8)
ctr.Width = CInt(ctr.Width * 0.8)
ctr.Height = CInt(ctr.Height * 0.8)
Dim newdoCtr As _
New doCtr(ctr)
Next
End Sub
///

However some users will only have 800x600. Is there
a quick method of scaling down the screens already written (e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, only textboxes, listviews, forms and buttons.

TIA
Me

.

Nov 20 '05 #5
* "Me" <an*******@discussions.microsoft.com> scripsit:
I forgot to ask... How can I tell the current
Screen res ?


'SystemInformation.PrimaryMonitorSize'
'SystemInformation.WorkingArea'
'SystemInformation.VirtualScreen'
'Screen.PrimaryScreen.Bounds'
'Screen.PrimaryScreen.WorkingArea'

When using more than one screen:

'Screen.AllScreens'

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

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

Similar topics

23
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
8
by: Brent | last post by:
Does anyone know the best way to detect and track a visitors screen resolution. I know the javascript to detect the users resolution but I am a bit confused on the best way to track and save this....
64
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I...
9
by: Les Juby | last post by:
I understand that there are several ways to effectively control the browser delivery of HTML to make the most effective use of the different screen resolutions today. (And in the foreseeable...
2
by: Wayne Aprato | last post by:
How do most Access developers handle the issue of different database users possibly running different screen resolutions? At the moment, I design for the worst case scenario ie. 800 x 600 screen...
4
by: David | last post by:
Could someone please advise how to cope with various screen resolutions that are used when an application is deployed to other machines that have different screen resolutions than the development...
5
by: TD | last post by:
This question is off topic but you folks have the answers. I do Access development work at clients offices using my laptop. I want to purchase a new laptop but I am wondering if I need a laptop...
35
by: Friendly_Lola | last post by:
What Screen Resolution do You use? 800 X 600 1024 X 768 1280 X 1024 Wow! 1600 X 1200 (i can't imagine this) I use 1024 X 768. For what resolution you optimize your web pages?
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...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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?
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,...

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.