Hi,
Is there a way in VB to know the exact width and height of my monitor?
I want my application to take these dimensions.
Thank you
Printable View
Hi,
Is there a way in VB to know the exact width and height of my monitor?
I want my application to take these dimensions.
Thank you
VB Code:
Dim intHeight As Integer, intWidth As Integer intHeight = Screen.PrimaryScreen.WorkingArea.Height intWidth = Screen.PrimaryScreen.WorkingArea.Width
these are in relation with the screen resolution.
Aren't there any properties independent from it?
What do you mean? You only need to set your form's height and width to what's given above. Am I missing something paranormal? :confused:
what i mean is that if I change my screen resolution, my form will get bigger/smaller depending on which resolution I'm choosing.
I want my form to cover the entire screen area regardless of which resolution i'm working with
Hi
Maybe Sandra wants to know all the supported resolution of the monitor?
The code Mendhak posted will get you your currrent screen resolution.
Regards
Jorge
Me.WindowState = FormWindowState.MaximizedQuote:
Originally posted by sandra
what i mean is that if I change my screen resolution, my form will get bigger/smaller depending on which resolution I'm choosing.
I want my form to cover the entire screen area regardless of which resolution i'm working with
Regards
Jorge
guys, tks for your replies, but none of your suggestions is working.
when I change my resolution to 800x600, I gate a huge screen?!