G
Guest
I originally asked this question in the "classic" VB forum. It occured to me
after I had sent it that I sent it to the wrong forum.
Anyway!
Here's the situation. I have VB.NET 2005 Express Edition. I have a 19" LCD
monitor with the resolution set at 1280 by 1024. I want to create a graphics
program, say, displaying fractals that will run with the form maximized. Are
the XY coordinates on the form independent of the size & resolution of the
monitor? I posted a question in this same newsgroup, & the person stated
that it's necessary in the code to determine the resolution of the monitor. Is
that really necessary? How do I do that? I don't want to have to create a
program for each & every monitor size & resolution! I would think that it
doesn't matter what size or resolution a monitor has. So, bottom line - my
monitor is set at 1280 by 1024. If someone with a 17" CRT monitor with a
resolution of 800 by 600 installs the program, will there be a problem? Thank
you.
I got 2 replies in the "Classic" VB forum.
Here is the first:
But... The X and Y coordinates won't change, just the amount of screen space
available (height and width). A pixel is a pixel regardless of how many
inches you have. You'll have to interrogate the Graphics object at run time
to see how much space you have to draw on.
Here is the second:
The resolution is the only thing that matters; the monitor size does
not. Things will work the same on a 15" monitor at 1024x768 as they
will on a 21" monitor at 1024x768.
So, you can see my confusion! How do I interrogate the Graphics object? Why
do I have to interrogate the Graphics object? Do I have to code the program
for a specific resolution? Which is the correct answer - the first reply or
the second?
Things were so much simpler in "classic" VB!
Thank you.
David
after I had sent it that I sent it to the wrong forum.
Anyway!
Here's the situation. I have VB.NET 2005 Express Edition. I have a 19" LCD
monitor with the resolution set at 1280 by 1024. I want to create a graphics
program, say, displaying fractals that will run with the form maximized. Are
the XY coordinates on the form independent of the size & resolution of the
monitor? I posted a question in this same newsgroup, & the person stated
that it's necessary in the code to determine the resolution of the monitor. Is
that really necessary? How do I do that? I don't want to have to create a
program for each & every monitor size & resolution! I would think that it
doesn't matter what size or resolution a monitor has. So, bottom line - my
monitor is set at 1280 by 1024. If someone with a 17" CRT monitor with a
resolution of 800 by 600 installs the program, will there be a problem? Thank
you.
I got 2 replies in the "Classic" VB forum.
Here is the first:
But... The X and Y coordinates won't change, just the amount of screen space
available (height and width). A pixel is a pixel regardless of how many
inches you have. You'll have to interrogate the Graphics object at run time
to see how much space you have to draw on.
Here is the second:
The resolution is the only thing that matters; the monitor size does
not. Things will work the same on a 15" monitor at 1024x768 as they
will on a 21" monitor at 1024x768.
So, you can see my confusion! How do I interrogate the Graphics object? Why
do I have to interrogate the Graphics object? Do I have to code the program
for a specific resolution? Which is the correct answer - the first reply or
the second?
Things were so much simpler in "classic" VB!
Thank you.
David