vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Mails senden, abrufen und decodieren - ganz easy ;-)  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Visual-Basic Einsteiger
Dann die Form 
Autor: Blackbox
Datum: 22.03.16 18:54

Drei Command-Buttons einfügen,
dieser Code

Private Function Get_Device_Information(ByVal hdc As Long)
      Dim a7 As Long, a8 As Long, a9 As Long, a10 As Long
      Dim a11 As Long, a12 As Long, a13 As Long, a14 As Long
      Dim a15 As Long, a16 As Long, a17 As Long, a18 As Long
      Dim a19 As Long, a20 As Long, a21 As Long, a22 As Long
      Dim a23 As Long, a24 As Long, a25 As Long, a26 As Long
 
      a7 = GetDeviceCaps(hdc, HORZSIZE)
      Print "(HORZSIZE)", , "Width in millimeters:", a7
      a8 = GetDeviceCaps(hdc, VERTSIZE)
      Print "(VERTSIZE)", , "Height in millimeters:", a8
      a9 = GetDeviceCaps(hdc, HORZRES)
      Print "(HORZRES)", , "Width in Pixels:", a9
      a10 = GetDeviceCaps(hdc, VERTREZ)
      Print "(VERTREZ)", , "Height in raster Lines:", a10
      a11 = GetDeviceCaps(hdc, BITSPIXEL)
      Print "(BITSPIXEL)", , "Color bits per Pixel:", a11
      a12 = GetDeviceCaps(hdc, PLANES)
      Print "(PLANES)", , "Number of Color Planes:", a12
      a13 = GetDeviceCaps(hdc, NUMBRUSHES)
      Print "(NUMBRUSHES)", "Number of device brushes:", a13
      a14 = GetDeviceCaps(hdc, NUMPENS)
      Print "(NUMPENS)", , "Number of device pens:", a14
      a15 = GetDeviceCaps(hdc, NUMMARKERS)
      Print "(NUMMARKERS)", "Number of device markers:", a15
      a16 = GetDeviceCaps(hdc, NUMFONTS)
      Print "(NUMFONTS)", "Number of device fonts:", a16
      a17 = GetDeviceCaps(hdc, NUMCOLORS)
      Print "(NUMCOLORS)", "Number of device colors:", a17
      a18 = GetDeviceCaps(hdc, PDEVICESIZE)
      Print "(PDEVICESIZE)", "Size of device structure:", a18
      a19 = GetDeviceCaps(hdc, ASPECTX)
      Print "(ASPECTX)", , "Relative width of pixel:", a19
      a20 = GetDeviceCaps(hdc, ASPECTY)
      Print "(ASPECTY)", , "Relative height of pixel:", a20
      a21 = GetDeviceCaps(hdc, ASPECTXY)
      Print "(ASPECTXY)", , "Relative diagonal of pixel:", a21
      a22 = GetDeviceCaps(hdc, LOGPIXELSX)
      Print "(LOGPIXELSX)", "Horizontal dots per inch:", a22
      a23 = GetDeviceCaps(hdc, LOGPIXELSY)
      Print "(LOGPIXELSY)", "Vertical dots per inch:", a23
      a24 = GetDeviceCaps(hdc, SIZEPALETTE)
      Print "(SIZEPALETTE)", "Number of palette entries:", a24
      a25 = GetDeviceCaps(hdc, NUMRESERVED)
      Print "(NUMRESERVED)", "Reserved palette entries:", a25
      a26 = GetDeviceCaps(hdc, SIZEPALETTE)
      Print "(SIZEPALETTE)", "Actual color resolution:", a26
End Function
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Fontgröße bei Printer-Objekt und Picturebox unterschiedlich?2.282DustyD.20.03.16 16:52
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.536Blackbox20.03.16 18:36
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.413DustyD.20.03.16 19:41
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.488Blackbox20.03.16 19:47
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.436DustyD.21.03.16 21:18
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.424Blackbox22.03.16 18:53
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.406DustyD.23.03.16 00:13
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.470Blackbox23.03.16 15:30
Dann die Form1.431Blackbox22.03.16 18:54
Dann die Form21.593Blackbox22.03.16 18:56
Dann die Form31.473Blackbox22.03.16 18:56
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.362DustyD.09.04.16 20:17

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel