Hello,
Please tell me how can i get screen resolution.I had tried the screen class provided by vb itself but it does not give right answer always. so please reply it.
Printable View
Hello,
Please tell me how can i get screen resolution.I had tried the screen class provided by vb itself but it does not give right answer always. so please reply it.
It works fine for me, you do know that it returns twips instead of pixels right?
The screen resolution in pixels is:
If you are using a class that finds the resolution in twips and you want the resolution in pixels, just divide the outputs by Screen.TwipsPerPixel[X/Y].Code:Dim ResX As Integer, ResY As Integer
ResX = Screen.Width / Screen.TwipsPerPixelX ' Pixels wide
ResY = Screen.Height / Screen.TwipsPerPixelY ' Pixels Tall
I found out that won't always work... weird, I know!
Once I made a program that should run fullscreen, but after some tries it just was too small! Screen.Width was too small, I'd say it was the same as Screen.Height...
I am knowing this fact that the value of screen.width & screen.height generally comes equal on my pc and mostly it is worng even after converting into pixels.I am not sure that my vb6 is corrputed or the function is not proper.
go to the main graphics section of vbworld they have an article there sorry i dont feel like doing any punctuation because i am really lazy right now sorry about that i hope that this isnt really hard to read i couldnt be bothered with capitals either really sorry i gotta go now see ya bye
:) hehe
Sorry... Hope I help
====:|------------------------>
a horrible ascii picture of a sword it sucks eh
VB Math is wrong, in some cases.
Another ASCII Sword
Code:/>
/>
{<><><><>::::===============================>
\>
\>
hey, thats a cool sword!