احتراف vb6

Download احتراف vb6

Post on 16-Apr-2015

311 views

Category:

Documents

22 download

Embed Size (px)

TRANSCRIPT

--------------------------- -------------------------------------- Forms ------------------------------- PictureBox CheckBox OptionButton ComboBox ListBox ScrollBars FileListBox | DirListBox | DriveListBox Image OLEObject RichText Box CommonDialog MSFlexGride

1

--------------------------- --------------- If..Then Select Case For..Next While..We Do..Loop -------------------------------------- -------------------- Enum UDT ------------------------ ------------------------------------------

2

---- -------------------------------------- ----------------------------- API ------------------------------------------ DataControl DBGride3

DataControl ---------------------------------- -------- DirectDraw DirectInput ----------------------------------- ActiveX

4

----------------------------- Classes Methods ------------------------------------------------- VBScript VBScript HTML Dynamic HTML DHTML DHTML DHTML DHTML --------------------- Client Server5

------------------------------------------ ToolTipText ClipBoard With App 23Shell

6

... BASIC Beginners All-purpose Symbolic Instruction Code .. .

7

..: Dartmouth ..

. . .

.

: : : : bibovbbook@hotmail.com :ICQ : : 3002 \ 6 \ 41

% ..

8

Start : Start > Programmes > Microsoft Visual Studio 6.0 > Microsoft 0.6 Visual Basic

!

9

10

: ... :

1 Form ... Twip ... :View Code ... . :Menu Editor ... . :Lock Controls ... ... :Paste . :Properties .

11

: 0.6 Microsoft Visual Basic PictureBox Timer TextBox Label ..

Components :

Apply OK ActiveX DLL Browse ..

21

:

... Directory Forms Directory Module ... Class Module Form 1...Form ..

: :

31

... ... Caption 1 Form ... Name Categorized Alphabetic ... ... Name ..

41

: Pointer . : PictureBox ... . : Label ... ... : Text Box : Frame Frame . : Command Button . : Check Box ... Options . : Option Button ... . : Compo box : ListBox List . : HScrolBar ... .

51

: VScrollBar . : Timer . : DriveListBox ListBox . : dirListBox ListBox Folders . : FileListbox Listbox Files . : Shape . : Line . : Image . Picturebox : data . : OLE . ..

61

: :File ..Exe :Edit .. :View ... :Project Module ClassModule .. :Format LockControls ... :Debug StepInto StepOver StepOut RunToCursor BreakPoints ... :Run .. :Query ..SQL :Diagram SQL ..ORACLE

71

:Tools AddProcedur ProcedureAtributes ID .. :Add-Insert .. :Window .. :Help MSDN ..

81

: )(Private Sub Command1_Click End Sub

: Private ... .Private Sub Sub End Sub ... . 1 Command 1 Command . Click Click Command1_Click Click 1.Command End Sub )( .

91

BreakPoint BreakPoint..

BreakPoint ..Debug

02

.. :Controls ... :Event .. :Methods Me.Hide .. :Object )( .. :Procedure )( " .. Event Procedure :Properities ..

12

Forms . . ) (.. Grid .

22

: : ..Add > Form Project ..AddForm :

: :Form .. :About Dialog .. :Web Browser .. :Dialog ..Dialog Box :Log In Dialog .. :Splash Screen ..

32

:Tip of the Day Tip of The Day .. :Option Dialog Option Dialog ..

: )( : ..

42

: True ... = False ... False ... ... 52

Name Appearance AutoRedraw BackColor BorderStyle Caption ControlBox Enabled Font ForeColor Height Left MaxButton MinButton MouseIcon MousePointer Movable Picture RightToLeft ShowInTaskBar StartUpPositio

Top Visible Width Window State

.

: Object.Property = Style Object Property Style ..

62

: :Load .. :Activate . :Deactivate . :Unload . :Initialize .

72

: ..

Height ..Width Width Height ..

82

Twip .. ScaleMode : ..User ..Twip ..Point ..Pixel ..Character ..Inch ..Millimeter ..Centimeter

92

6 Visual Basic . ...

03

: . : . . . . . Shift .. Shift

: . .

13

: : . . .

23

: Control + C Edit ...Copy : Control + X Edit ...Cut : Control + V Edit ...Paste : Delete Edit ...Delete

33

Check Box

.. : CheckBox Image CheckBox .. :CheckBox )(Private Sub Check1_Click If Check1.Value = 1 Then Image1.Visible = True End If End Sub

Check1.Value : 0 1 2 Unchecked Checked Grayed

43

Combo & List Box

: :Combo Box : )(Private Sub Form1_Load Combo1.AddItem Ehab Combo1.AddItem Ahmed

End Sub

Ehab Ahmed .. ( Change Click : )(Private Sub Combo1_Click Select Case Combo1.ListIndex 0 Case Expression Expression End Select End Sub 1 Case

53

: Select Case 0 Case 1 Case 0 Case Ehab 1 Case Ahmed Combo1.ListIndex Expression Image1.Visible = True Label1.Caption = Ehab .. End Select .Select Case : :List Box : )(Private Sub Form1_Load List1.AddItem Ehab List1.AddItem Ahmed

End Sub

Ehab Ahmed .. ( Change Click : )(Private Sub Combo1_Click Select Case List1.ListIndex Expression 0 Case 1 Case . Expression . End Select End Sub ..ComboBox

63

Common Dialog

.. : : Common Dialog .. :

...

73

Common Dialog : ( Common Dialog . ( . ( . ( : )(Private Sub Command1_Click &1CommonDialog1.Flags = &H

CommonDialog1.ShowColor . Element.Action = CommonDialog1.ColorEnd Sub : CommmonDialog1.ShowColor Element.Action Element 1 Label 1 Form Action ForeColor BackColor BorderColor CommonDialog1.Color ..

83

: : Common Dialog bmp jpg gif : ( Common Dialog . ( . ( Image .Picture ( : )(Private Sub Command1_Click ")CommonDialog1.Filter = "Bitmaps (*.bmp)|Jpeg (*.jpg CommonDialog1.ShowOpen If CommonDialog1.FileName "" Then )Picture1.Picture = LoadPicture(CommonDialog1.FileName

. End IfEnd Sub Common Dialog ...

93

: :txt Common Dialog : ( Common Dialog . ( . ( .RichTextBox ( : )(Private Sub Command1_Click ")CommonDialog1.Filter = "Text (*.txt CommonDialog1.ShowOpen If CommonDialog1.FileName "" Then )RichTextBox1.LoadFile (CommonDialog1.FileName

End If

.End Sub

Common Dialog ...TextBox ..TextBox

04

Image

: Name Appearance BorderStyle Enabled Height Left MouseIcon MousePointer Picture Stretch ToolTipText Top Visible Width

Stretch PictureBox

14

: PictureBox ..CommonDialog

24

Option Button

.. Visible False 1Option .. 1 Option: )(Private Sub Option1_Clic