Senin, 09 September 2024

VB6 Dimension Form And Screen

These are following dimension properties in Visual Basic classic Form Object and Visual Basic classic Screen Object:
Form1.Height
Form1.Width
Form1.ScaleHeight
Form1.ScaleWidth
Form1.TextHeight(<Object with string return value>)
Form1.TextWidth(<Object with string return value>)
VB.Screen.Width
VB.Screen.Height
VBA.Len(<Object with string return value>)
VBA.LenB(<Object with string return value>)

These are following position properties in Visual Basic classic Form Object and Visual Basic classic 
Form1.Left
Form1.Top
Form1.ScaleLeft
Form1.ScaleTop

Example:

This are Visual Basic ScaleMode Property :
Form1.ScaleMode = 1

These are Visual Basic Scale Mode Enum Value for ScaleMode Property from above:
0 - User, 1 - Twip ( vbTwips ), 2 - Point ( vbPoints ), 3 - Pixel ( vbPixels ), 4 - Character ( vbCharacters ), 5 - Inch ( vbInches ), 6 - Milimeter ( vbMilimeters ), 7 - Centimeter ( vbCentimeters )

Example:

ScaleModeConstants.vbTwips

Bibliography

https://learn.microsoft.com/
https://www.homeandlearn.co.uk/
https://www.tutorialspoint.com/

Related Post

Tidak ada komentar:

Posting Komentar