Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
VB6

VB6

Ratings:

4.5

(2)
|Views: 104|Likes:
Published by api-3710223

More info:

Published by: api-3710223 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

1
Ch\u01b0\u01a1ng M\ue000t - Hoan ngh\u00eanh\u00f1\ue001n v\ue002i VB6
Ch\u00e0o m\ue003ng b\ue004n\u00f1\ue001n v\ue002i Visual Basic 6

D\u00f9ng VB6 l\u00e0 c\u00e1ch nhanh v\u00e0 t\ue000t nh\ue001t\u00f1\ue002 l\ue003p tr\u00ecnh cho Microsoft Windows. Cho d\u00f9 b\ue004n l\u00e0 chuy\u00ean nghi\ue005p hay m\ue006i m\ue007 \u00f1\ue000i v\ue006i ch\u01b0\u01a1ng tr\u00ecnh Windows, VB6 s\ue008 cung c\ue001p cho b\ue004n m\ue009t b\ue009 c\u00f4ng c\ue00a ho\u00e0n ch\ue00bnh \u00f1\ue002 \u00f1\u01a1n gi\ue00cn h\u00f3a vi\ue005c tri\ue002n khai l\ue003p tr\u00ecnh\ue00dng d\ue00ang cho MSWindows.

Visual Basic l\u00e0 g\u00ec?Ph\ue00e n "Visual" \u00f1\ue00fc\ue003p \u00f1\ue010n ph\u01b0\u01a1ng ph\u00e0p \u00f1\u01b0\ue011c s\ue012d\ue00ang \u00f1\ue002t\ue004o giao di\ue005n \u00f1\ue013h\ue014a
ng\u01b0\ue015i d\u00f9ng (Graphical User Interface hay vi\ue010t t\ue016c l\u00e0 GUI) . C\u00f3 s\ue017n nh\ue018ng b\ue009 ph\ue003n h\u00ecnh\ue00cnh, g\ue014i l\u00e0
controls, b\ue004n tha h\ue013 s\ue016p\u00f1\ue019t v\ue01a tr\u00ed v\u00e0 quy
\ue010t \u00f1\ue01anh c\u00e1c \u00f1\ue019c t\u00ednh c\ue01ba ch\u00fang tr\u00ean m\ue009t khung m\u00e0n h\u00ecnh, g
\ue014i l\u00e0
form. N\ue010u b\ue004n\u00f1\u00e3 t\ue01cng s\ue012 d\ue00ang ch\u01b0\u01a1ng tr\u00ecnh v\ue008 ch\ue01dng h\ue004n nh\u01b0 Paint, b\ue004n\u00f1\u00e3 c\u00f3 s\ue017n c\u00e1c k\ue01en\u0103ng c\ue00en
thi\ue010t\u00f1\ue002 t\ue004o m\ue009t GUI cho VB6.
Ph\ue00en"Basi c"\u00f1\ue00f c\ue003p\u00f1\ue010n ng\u00f4n ng\ue018 BASIC (Beginners All-Purpose Symbolic Instruction Code), m\ue009t
ng\u00f4n ng\ue018 l\ue003p tr\u00ecnh\u00f1\u01a1n gi\ue00cn, d\ue01f h\ue014c,\u00f1\u01b0\ue011c ch\ue010 ra cho c\u00e1c khoa h\ue014c gia (nh\ue018ng ng\u01b0\ue015i kh\u00f4ng c\u00f3 th\u00ec gi\ue015
\u00f1\ue002h\ue014c l\ue003p tr\u00ecnh \u00f1i\ue005n to\u00e1n) d\u00f9ng.

Visual Basic\u00f1\u00e3\u00f1\u01b0\ue011c ra t\ue01c MSBasic, do Bill Gates vi\ue010t t\ue01c th\ue015i d\u00f9ng cho m\u00e1y t\u00ednh 8 bits 8080 hay Z80. Hi\ue005n nay n\u00f3 ch\ue00d a\u00f1 \ue010n h\u00e0ng tr\u0103m c\u00e2u l\ue005nh (commands), h\u00e0m (functions) v\u00e0 t\ue01c kh\u00f3a (keywords). R\ue001t nhi\ue00fu commands, functions li\u00ean h\ue005 tr\ue020c ti\ue010p\u00f1\ue010n MSWindows GUI. Nh\ue018ng ng\u01b0\ue015i m\ue006i b\ue016t\u00f1\ue00eu c\u00f3 th\ue002 vi\ue010t ch\u01b0\u01a1ng tr\u00ecnh b\ue021 ng c\u00e1ch h\ue014c ch\ue00b m\ue009t v\u00e0i commands, functions v\u00e0 keywords. Kh

\ue00cn\u0103ng c\ue01ba ng\u00f4n
ng\ue018 n\u00e0y cho ph\u00e9p nh\ue018 ng ng\u01b0\ue015i chuy\u00ean nghi\ue005p ho\u00e0n th\u00e0nh b\ue001t k\u1ef3\u00f1i\ue00fu g\u00ec nh\ue015 s\ue012 d\ue00ang ng\u00f4n ng\ue018 l\ue003p
tr\u00ecnh MSWindows n\u00e0o kh\u00e1c.

Ng\u01b0\ue015i mang l\ue004i ph\ue00en "Visual" cho VB l\u00e0 \u00f4ng Alan Cooper. \u00d4ng\u00f1\u00e3 g\u00f3i m\u00f4i tr\u01b0\ue015ng ho\ue004t\u00f1\ue009ng c\ue01ba Basic trong m\ue009t ph\ue004m vi d\ue01f hi\ue002u, d\ue01f d\u00f9ng, kh\u00f4ng c\ue00en ph\ue00ci ch\u00fa \u00fd\u00f1\ue010n s\ue020 tinh x\ue00co c\ue01ba MSWindows, nh\u01b0ng v\ue022n d\u00f9ng c\u00e1c ch\ue00dc n\u0103ng c\ue01ba MSWindows m\ue009t c\u00e1ch hi\ue005u qu\ue00c. Do\u00f1\u00f3, nhi\ue00fu ng\u01b0\ue015i xem \u00f4ng Alan Cooper l\u00e0 cha gi\u00e0 c\ue01ba Visual Basic.

Visual Basic c\u00f2n c\u00f3 hai d
\ue004ng kh\u00e1c: Visual Basic for Application (VBA) v\u00e0VBScr ipt. VBA l\u00e0 ng\u00f4n

ng\ue018 n\ue021m ph\u00eda sau c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh Word, Excel, MSAccess, MSProject, .v.v.. c\u00f2n g\ue014i l\u00e0 Macros. D\u00f9ng VBA trong MSOffice, ta c\u00f3 th\ue002 l\u00e0m t\u0103ng ch\ue00dc n\u0103ng b\ue021ng c\u00e1ch t\ue020 \u00f1\ue009ng h\u00f3a c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh. VBScript\u00f1\u01b0\ue011c d\u00f9ng cho Internet v\u00e0 ch\u00ednh Operating System.

D\u00f9 cho m\ue00ac\u00f1\u00edch c\ue01ba b\ue004n l\u00e0 t\ue004o m\ue009t ti\ue005n \u00edch nh\ue023 cho ri\u00eang b\ue004n, trong m\ue009t nh\u00f3m l\u00e0m vi\ue005c c\ue01ba b\ue004n, trong m\ue009t c\u00f4ng ty l\ue006n, hay c\ue00en ph\u00e2n b\ue000 ch\u01b0\u01a1 ng tr\u00ecnh\ue00dng d\ue00ang r\ue009ng r\u00e3i tr\u00ean th\ue010gi\ue006i qua Internet, VB6 c\u0169ng s\ue008 c\u00f3 c\u00e1c c\u00f4ng c\ue00a l\ue003p tr\u00ecnh m\u00e0 b

\ue004n c\ue00en thi\ue010t.
C\u00e1c\ue005n b\ue006n Visual Basic 6
C\u00f3 ba\ue001n b\ue00cn VB6: Learning, Professional v\u00e0 Enterprise. Ch\u00fang ta h\u00e3y g\u00e1t qua\ue001n b\ue00cn Learning. B\ue004n
c\u00f3 th\ue002 d\u00f9ng\ue001n b\ue00cn Professional hay Enterprise.
\ue024n b\ue00cn Professional cung c\ue001p \u00f1\ue00ey \u00f1\ue01bnh\ue018ng g\u00ec b\ue004n c\ue00en \u00f1\ue002h\ue014c v\u00e0 tri\ue002n khai m\ue009t ch\u01b0\u01a1ng tr\u00ecnh VB6,
nh\ue001t l\u00e0 c\u00e1c control ActiveX, nh\ue018ng b\ue009 ph\ue003n l\ue003p tr\u00ecnh ti\ue00fn ch\ue010 v\u00e0 r\ue001t h\ue018u d\ue00ang cho c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh
\ue00dng d\ue00ang (application programs) c\ue01ba b\ue004n trong t\u01b0\u01a1ng lai. Ngo\u00e0i \u00f1\u0129a compact ch\u00ednh cho VB6, t\u00e0i li \ue005u
\u00f1\u00ednh k\u00e8m g\ue013m c\u00f3 s\u00e1ch Visual Studio Professional Features v\u00e0 hai \u00f1\u0129a CD Microsoft Developer
Network (MSDN).
\ue024n b\ue00cn Enterprise l\u00e0 \ue001n b\ue00cn Professional c\ue009ng th\u00eam c\u00e1c c\u00f4ng c\ue00a Back Office ch\ue01dng h\ue004n nh\u01b0SQL
Server, Microsoft Transaction Server, Internet Information Server.
C\u00e0i\u00f1\ue007t VB6
\u00f0\ue002c\u00e0i \u00f1\ue019t VB6, m\u00e1y t\u00ednh c\ue01ba b\ue004nc\ue00en ph\ue00ci c\u00f3 m\ue009t \ue025 \u00f1\u0129a CD-ROM (CD drive) . B \ue004n c\ue00en \u00edt nh\ue001t 32 MB
RAM, 2 GB hard disk v\u00e0 CPU Pentium II. Khi b\ue023 VB6 CD v\u00e0o CD drive, n\u00f3 s\ue008 t\ue020 kh\ue026i\u00f1\ue009ng\u00f1\ue002
display menu cho b\ue004n ch\ue014n nh\ue018ng th\ue00d g\u00ec c\ue00en Setup, h\u00e3y clickInstall Visual Basic 6.0\u00f1\ue002 c\u00e0i VB6.
2

Ngo\ue004i tr\ue01c c\u00e1c file h\ue005\u00f1i\ue00fu h\u00e0nh (Operating System) trong th\u01b0 m\ue00ac (folder)\Os, c\u00e1c file trong\u00f1 \u0129a compact\u00f1\ue00fu kh\u00f4ng b\ue01a n\u00e9n. V\u00ec th\ue010, b\ue004n c\u00f3 th\ue002 s\ue012 d\ue00ang ch\u00fang tr\ue020c ti\ue010p t\ue01c \u00f1\u0129a. V\u00ed d\ue00a, c\u00f3 nhi\ue00fu c\u00f4ng c\ue00a v\u00e0 th\u00e0nh ph\ue00en trong folder\Tools v\ue000n c\u00f3 th\ue002 \u00f1\u01b0\ue011c c\u00e0i\u00f1\ue019t tr\ue020c ti\ue010p t\ue01c CD-ROM. Ngo\u00e0i ra, b\ue004n c\u00f3 th\ue002 ch\ue004y Setup khi n\u00e0o c\ue00en thi\ue010t. V\u00ed d\ue00a, b\ue004n c\u00f3 th\ue002 ch\ue004y Setup\u00f1\ue002 c\u00e0i\u00f1\ue019t l\ue004i Visual Basic trong folder kh\u00e1c, ho\ue019c\u00f1\ue002 c\u00e0i\u00f1\ue019t th\u00eam b\ue006t c\u00e1c ph\ue00en c\ue01ba VB6. N\ue010u v\u00ec l\u00fd do g\u00ec h\ue005 th\ue000ng kh\u00f4ng install c\u00e1c\u00f1\u0129a compact MSDN (b\ue004n s\ue008 kh\u00e1m ph\u00e1 ra\u00f1i\ue00fu n\ue00ey khi th\ue001y Help kh\u00f4ng c\u00f3 m\ue019t l\u00fac ch\ue004y VB6), b\ue004n c\u00f3 th\ue002 c\u00e0i\u00f1\ue019t ch\u00fang tr\ue020c ti\ue010p t\ue01c \u00f1\u0129a s\ue000 1 c\ue01ba b\ue009 MSDN.

\u00f0\ue007b\ue008 xung v\u00e0 x\u00f3a c\u00e1c th\u00e0nh ph\ue009n VB:
1. B\ue023 \u00f1\u0129a compact v\u00e0o CD drive.
2. N\ue010u menu kh\u00f4ng t\ue020 \u00f1\ue009ng hi\ue005n l\u00ean th\u00ec ch\ue004y ch\u01b0\u01a1ng tr\u00ecnh Setup c\u00f3 s\ue017n tong folder g\ue000c tr\u00ean\u00f1\u0129a

compact.
3. Ch\ue014n n\u00fatCus to m trong h\ue009p tho\ue004i (dialog) Microsoft Visual Basic 6.0 Setup.
4. Ch\ue014n hay x\u00f3a c\u00e1c th\u00e0nh ph\ue00en b\ue021ng c\u00e1ch check hay uncheck c\u00e1c h\ue009p danh s\u00e1chOptions c\ue01ba dialog

Custom.
5. Th\ue020c hi\ue005n c\u00e1c ch\ue00b d\ue022n Setup tr\u00ean m\u00e0n h\u00ecnh.
Ghi ch\u00fa: Trong l\u00fac c\u00e0i VB6, nh\ue000 ch\ue001n Graphics n\ue002u kh\u00f4ng b\ue003n s\ue004 thi\ue002u m\ue005t s\ue006 h\u00ecnh\ue007nh nh\u01b0 icons,
bitmaps v.v...\u00f0\u00e1ng l\ue004 Microsoft cho t\ue008 \u00f1\ue005ng c\u00e0i\u00f1\ue009t Graphics, t\ue00ac l\u00e0 Default (kh\u00f4ng c\u00f3 n\u00f3i g\u00ec) th\u00ec c\u00e0i
\u00f1\ue009t Graphics.
Integrated Development Environment (IDE) c\ue003a VB6
Khi kh\ue025i\u00f1\ue009ng VB6 b\ue004n s\ue008 th\ue001y m\ue025 ra nhi\ue00fu c\ue012a s\ue024 (windows), scrollbars, v.v.. v\u00e0 n\ue021m ch\ue013ng l\u00ean l\u00e0
New Project dialog.\ue026 \u00f1\u00e2y VB6 cho b\ue004n ch\ue014n m\ue009t trong nhi\ue00fu lo\ue004i c\u00f4ng tr\u00ecnh.
Ch\ue014n Standard EXE. M\ue009t l\u00e1t sau tr\u00ean m\u00e0n\ue00cnh s\ue008 hi\ue005n ra giao di\ue005n c\ue01ba m\u00f4i tr\u01b0\ue015ng ph\u00e1t tri\ue002n t\u00edch h\ue011p
(Integrated Development Environment - IDE ) gi\ue000ng nh\u01b0 d\u01b0\ue006i\u00f1\u00e2y:

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->