Sabtu, 27 April 2024

Visual Basic Common Properties

The Left, Top, Width, and Height Properties

'Default properties in Form.
Form1.Width = 4800 'Single Precision Floating Point variable
Form1.Left = 0 'Single Precision Floating Point variable
Form1.Top = 0 'Single Precision Floating Point variable
Form1.Height = 3600 'Single Precision Floating Point variable

The ForeColor and BackColor Properties

'Default properties in corresponding control.
Label1.ForeColor = &H80000012& 'vbButtonText
Label1.BackColor = &H8000000F& 'vbButtonFace
Text1.ForeColor = &H80000008& 'vbWindowText
Text1.BackColor = &H80000005& 'vbWindowBackground

'ForeColor and BackColor are Long Integer
'These statements are equivalent.
Text1.BackColor = vbCyan
Text1.BackColor = 16776960
Text1.BackColor = &HFFFF00
Text1.BackColor = RGB(0, 255, 255)    ' red, green, blue values
Text1.BackColor = QBColor(11)

To learn about textbox, click on Visual Basic TextBox >

The Font Property

'Default properties in corresponding control.
Text1.Font.Name = "MS Sans Serif"
Text1.Font.Size = 12
Text1.Font.Bold = True
Text1.Font.Underline = True

<< back to Visual Basic Intrinsic Controls

Bibliography

Beginning Visual Basic 6 Database Programming;John Connell
Learning Visual Basic .NET Introducing the Language, .NET Programming & Object Oriented Software Development;Jesse Liberty
Mastering Visual Basic 6 Paperback;Evangelos Petroutsos
Microsoft® Visual Basic® Step by Step;Michael Halvorson 
Professional Visual Basic 6: A Programmer's Resource;Jerry Ablan et. al.
Professional Visual Basic 6 Databases;Charles Williams
Programming Microsoft Visual Basic 6.0;Francesco Balena
The Waite Group's Visual Basic 6 How-To;Eric Brierley
The Waite Group's Visual Basic 6 Database How-To;Eric Winemiller et. al.
Using Visual Basic 6; Rob Reselman
Visual Basic 6 Black Book;S Holzner
Visual Basic 6 Complete;Steve Brown 
Visual Basic 6 Developer's Handbook;Evangelos Petroutsos
Visual Basic 6 From The Ground Up;Gary Cornell
Visual Basic 6 How To Program;Harvey M. Deitel
Visual Basic In Easy Steps;Mike McGrath
Visual Basic 6 Made Easy;Liew Voon Kiong
https://www.amazon.com/
https://www.goodreads.com/

microsoft visual basic, programming language, coding syntax, sample code, snippet code

Related Post:

Tidak ada komentar:

Posting Komentar

Various Other Posts