LARGEUR ET LONGUEUR DE LA RÉSOLUTION DE L'ÉCRAN .NET
CAD9757
Messages postés74Date d'inscriptiondimanche 17 août 2003StatutMembreDernière intervention27 mars 2004
-
22 août 2003 à 19:18
gillardg
Messages postés3275Date d'inscriptionjeudi 3 avril 2008StatutMembreDernière intervention14 septembre 2014
-
19 juin 2008 à 23:08
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
gillardg
Messages postés3275Date d'inscriptionjeudi 3 avril 2008StatutMembreDernière intervention14 septembre 20142 19 juin 2008 à 23:08
Dim x, y, z As String
x = Screen.PrimaryScreen.Bounds.Width.ToString()
y = Screen.PrimaryScreen.Bounds.Height.ToString()
z = Screen.PrimaryScreen.BitsPerPixel
Label1.Text "résolution actuelle " & x & " x " & y & " " & z & " bits par pixels"
EvilGost
Messages postés235Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention16 mai 20112 3 août 2006 à 17:49
impec, c tout bete, mais je le cherchais, je trouvais pas, merci :)
Jujufouq
Messages postés254Date d'inscriptionjeudi 27 décembre 2001StatutMembreDernière intervention 5 mars 2006 22 août 2003 à 20:17
Merci pour ton aide, mais perso je n'ai pas trouver l'objet screen dans VB.NET ! Je vais y retourner, mais à demain les tests maintenant. ++
CAD9757
Messages postés74Date d'inscriptiondimanche 17 août 2003StatutMembreDernière intervention27 mars 2004 22 août 2003 à 19:24
bon #%$ comment on fiat pour mettre des backslash ? (pour les div entières) ? je les mets et il les affiche pas !!!!!!!!! bon, on va dire que le backslash c'est [back] (c'est la barre oblique au dessous du 8)
ça donne :
Largeur=screen.width [back] screen.twipperpixelx
Hauteur=screen.height [back] screen.twipperpixely
et si ça marche pas je fais un meurtre....
CAD9757
Messages postés74Date d'inscriptiondimanche 17 août 2003StatutMembreDernière intervention27 mars 2004 22 août 2003 à 19:20
hem, j'me suis planté... lire :
Largeur=screen.width screen.twipperpixelx
Hauteur=screen.height screen.twipperpixely
CAD9757
Messages postés74Date d'inscriptiondimanche 17 août 2003StatutMembreDernière intervention27 mars 2004 22 août 2003 à 19:18
plus simple :
Largeur=screen.widthscreen.twipperpixelx
Hauteur=screen.heightscreen.twipperpixely
19 juin 2008 à 23:08
x = Screen.PrimaryScreen.Bounds.Width.ToString()
y = Screen.PrimaryScreen.Bounds.Height.ToString()
z = Screen.PrimaryScreen.BitsPerPixel
Label1.Text "résolution actuelle " & x & " x " & y & " " & z & " bits par pixels"
3 août 2006 à 17:49
22 août 2003 à 20:17
22 août 2003 à 19:24
ça donne :
Largeur=screen.width [back] screen.twipperpixelx
Hauteur=screen.height [back] screen.twipperpixely
et si ça marche pas je fais un meurtre....
22 août 2003 à 19:20
Largeur=screen.width screen.twipperpixelx
Hauteur=screen.height screen.twipperpixely
22 août 2003 à 19:18
Largeur=screen.widthscreen.twipperpixelx
Hauteur=screen.heightscreen.twipperpixely