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

screen dimension

I'm french,
and I would like find the screen width and height without using the screen
object.
Can you Help me ?

Nov 21 '05 #1
7 1640
Fabrice,
I'm french,
and I would like find the screen width and height without using the screen
object.


Fabrice this is a crazy question, for what you get a crazy answer, you know
that in France is invented the meter, so use that.

When you want to do it using VBNet use the screen object and when you want
to use a non dotNet program language than you can ask it better in a WIN32
newsgroup to get an API for that.

Just my thought,

Cor
Nov 21 '05 #2
Hi Fabrice,

This has been answered before in the C# group, You can find it in my
snippets at
http://www.publicjoe.f9.co.uk/csharp/snip/snip039.html. The code is simple
so porting it to VB should be easy.

Hope this helps

Publicjoe

C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Tutorial at http://www.publicjoe.f9.co.uk/vbnet/vbnet.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html

Useful Articles at http://www.madsally.co.uk
"FabriceG" <Fa******@discussions.microsoft.com> wrote in message
news:B5**********************************@microsof t.com...
I'm french,
and I would like find the screen width and height without using the screen
object.
Can you Help me ?

Nov 21 '05 #3
Thank for you anwers

"Cor Ligthert" wrote:
Fabrice,
I'm french,
and I would like find the screen width and height without using the screen
object.


Fabrice this is a crazy question, for what you get a crazy answer, you know
that in France is invented the meter, so use that.

When you want to do it using VBNet use the screen object and when you want
to use a non dotNet program language than you can ask it better in a WIN32
newsgroup to get an API for that.

Just my thought,

Cor

Nov 21 '05 #4
"FabriceG" <Fa******@discussions.microsoft.com> wrote in message
news:B5**********************************@microsof t.com...
I'm french,
I wouldn't consider that a problem in itself ...
I would like find the screen width and height without using the
Screen object.


Why?

Is there something /wrong/ with the Screen object that means you
/can't/ use it? Or, indeed, that /we/ shouldn't use it?

Regards,
Phill W.
Nov 21 '05 #5
"FabriceG" <Fa******@discussions.microsoft.com> schrieb:
and I would like find the screen width and height without using the screen
object.


What's the reason for not usiing the 'Screen' object?

Monitor size:

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

When using multiple monitors:

'Screen.AllScreens'

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

Nov 21 '05 #6
Probably not using VB.NET - probably wants to hit the API directly with
something like GetSystemMetrics and all that malarky.
--
Pete Wright
Author of ADO.NET Novice to Pro for Apress
www.petewright.org

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
"FabriceG" <Fa******@discussions.microsoft.com> schrieb:
and I would like find the screen width and height without using the
screen
object.


What's the reason for not usiing the 'Screen' object?

Monitor size:

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

When using multiple monitors:

'Screen.AllScreens'

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

Nov 21 '05 #7
Pete,

"Pete Wright" <pe**********@gmail.com> schrieb:
Probably not using VB.NET - probably wants to hit the API directly with
something like GetSystemMetrics and all that malarky.


:-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #8

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

Similar topics

11
by: Alex Shi | last post by:
Hello, I'd like to know which php variable can tell the screen resolution of a remote user? Thanks! Alex Shi -- ================================================== Cell Phone Batteries at...
13
by: Erik | last post by:
I want to write a Server Side PHP program that generates a HTML page client side. How would I get at the clients' screen size, before serving the generated page ? Would it be a two-step process:...
1
by: edward hage | last post by:
The following program is an applet that reads a number from a file 10 times per second. It needs to be shown graphically. The file monitors a procesvariable and changes continuously. It is read...
9
by: Steve Jorgensen | last post by:
Hi all, I'm working on the schema for a database that must represent data about stock & bond funds over time. My connundrum is that, for any of several dimension fields, including the fund name...
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...
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...
1
by: Jaco | last post by:
Hi, How can I determine in C#-code the screen resolution. If it is an 800 by 600 or an 1024 by 768 I have to show other forms (frames) on the screen (dimension of the forms depends on the...
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?
5
by: Kid Programmer | last post by:
Hello guys. I was wondering how you can clear the screen in a java program. Here is the code for my program: import javax.swing.SwingUtilities; import javax.swing.JFrame; import...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.