Microsoft Visual Basic 6.0
Microsoft Visual Basic 6.0
u
Microsoft Visual Basic 6.0 uuuGef
rmwdum
trSwfpOf taMumif;t&m pmrsufESm
tcef; ( 1 )
1/ Introduction pum;csD; 1
2/ Visual Basic 6.0 pwifzGifhjcif; 1
3/ Creating an Application y½dk*&rfwpfckudkpwiftajcwnfjcif; 2
4/ Create the interface tjyeftvSefqufoG,fcsufrsm;udk
BudKwifpOf;pm;jcif; 3
5/ Set Properties *kPfowådrsm;udkjyifqifjcif; 6
6/ Write Code y½dk*&rfa&;jcif; 9
7/ Factorial ½Smonfh y½dk*&rfa&;jcif; 18
8/ Prime Number udk½Smjcif; 23
tcef; ( 2 )
9/ Menu wnfaqmufjcif; 25
10/ Pulldown Menu wpfckjzpfaom Test Buttons udka½G;ygu
jzpfvmrnfh Program udk a&;om;jcif; 31
11/ Word Wrap and Autosize (Pulldown Menu) twGuf
Program a&;om;jcif; 33
12/ List Box (Pulldown Menu) twGuf Program a&;om;jcif; 34
13/ Check Box (Pulldown Menu) twGuf Program a&;om;jcif; 39
c
Microsoft Visual Basic 6.0 uuuGef
Program a&;om;jcif; 44
16/ Scroll Bars (Pulldown Menu) twGuf Program a&;om;jcif; 46
17/ Menu Bar aemufwpfckxyfrHjyKvkyfjcif; 48
tcef; ( 3 )
18/ Graphic rsm;udk Windows yHkpHtwdkif;½SmazGjcif; 58
19/ Timer jzifhtcsdefudkzefwD;jcif; 62
20/ tcsdefESifhywfoufaom Function rsm;udk
Form zefwD;íprf;oyfjcif; 65
tcef; ( 4 )
21/ ODBC ü Access File tm;toHk;jyKEdkifap&ef aqmif½Gufjcif; 70
22/ Visual Basic 6.0 wGif ODBC Data Sources qJGwifjcif; 77
23/ Data Form Wizard wnfaqmufjcif; 78
24/ rdrdenf;jzifh Access File toHk;jyKaomy½dk*&rfa&;om;jcif; 85
*
Microsoft Visual Basic 6.0 uuuGef
tcef; ( 5 )
25/ String ESifhqdkifaomudpö&yfrsm; 91
26/ String Function rsm;udktoHk;jyKí udef;*Pef;rsm;wGufcsufjcif; 93
27/ String toHk;jyKí Fibonacci Sequence udef;pOfwef;udk½Smjcif; 95
28/ Astrisk rsm;zefwD;jcif; 97
29/ Magic Square y½dk*&rfa&;om;jcif; 98
30/ &m*Pef;½dkufxnfhygu 4if;udef;*Pef; 3 vHk;pvHk;aygif;jcif; 100
tcef; ( 6 )
31/ Mathematics ESifhqdkifaomudpö&yfrsm;
½dk;½dk;udef;pOfwef; 1, 2, 3, 4, ...? qwdk;udef; 1, 2, 4, 8, 16, ...?
xyfudef; 1, 4, 9, 16, 25, ... udef;pOfwef;wdkYudk
y½dk*&rfa&;om;jcif; 104
32/ AP udef;pOfwef;udk y½dk*&rfa&;om;jcif; 105
33/ GP udef;pOfwef;udk y½dk*&rfa&;om;jcif; 107
34/ S = 1 + 2 + 3 + ... + N udef;pOfwef;wdkYudk aygif;jcif; 108
35/ S = 1 * 2 * 3 * ... * N udef;pOfwef;wdkYudk aygif;jcif; 109
36/ udef;pOfwef; S = 1 + 1/4 + 1/9 + ... + 1/N*N wdkYudk½SmazGjcif; 110
37/ udef;pOfwef; P = (2/3)(3/4)(4/5)...(N/N+1) wdkYudk½SmazGjcif; 111
C
Microsoft Visual Basic 6.0 uuuGef
tcef; ( 7 )
38/ Access 2002 ½Sd Database File tm; Visual Basic 6.0 ESifh
tcef; ( 8 )
42/ Data Types rsm;\*kPfowådrsm; 135
43/ erlemy½dk*&rfrsm; 136
44/ Toolbox wGifyg0ifaom Icon rsm;ESifherlemy½dk*&rfrsm; 149
45/ Microsoft Windows Common Controls
wGifyg0ifaom Icon rsm; 205
46/ Microsoft Calendar Control (Form twGif;jyu©'defxnfhjcif;) 223
47/ Execute File udk y½dk*&rfjzifhvSrf;ac:toHk;jyKjcif; 224
48/ jr§m;rsm;udkywfjcmvnfvSnfhonfhy½dk*&rfudka&;jcif; 226
i
Microsoft Visual Basic 6.0 uuuGef
tcef; ( 9 )
49/ Access 2002 ½Sd Database File xJrS
tcef; ( 10 )
55/ Microsoft Visual 6.0 jzifh,cifoHk; Access zdkifwnfaqmufjcif; 258
56/ ,cifoHk; Access zdkifudk Data Report wnfaqmufí
Report wnfaqmufjcif; 274
57/ ,cifoHk; Access zdkifudk Form wnfaqmufí"gwfyHkrsm;Munfhjcif; 295
p
Microsoft Visual Basic 6.0 uuuGef
tcef; ( 11 )
66/ Visual Basic 6.0 jzifh Program wpfcktm;a&;NyD;
Execute File wnfaqmufjcif; 375
67/ Visual Basic 6.0 jzifh Program wpfcktm;a&;NyD;
Package jyKvkyfjcif; 381
68/ tjcm;uGeyf sLwmrsm;odYk jyefvnf Install jyKvkyfjcif; 393
69/ InputBox a&;xHk;jzifh Password jyKvkyfjcif; 396
70/ omrefa&;xHk;jzifh Password jyKvkyfjcif; 400
q
Microsoft Visual Basic 6.0 uuuGef
tcef; ( 12 )
71/ Microsoft Internet Explore zdkifudkqJG,ltoHk;csjcif; 405
tcef; ( 13 )
72/ Application Package rsm;udky½dk*&rfjzifhzGifhjcif; 436
tcef; ( 14 )
taxGaxG
73/ Multiple List Box rsm;zefwD;jcif; 439
74/ Exchange Sort udk Visual Basic jzifha&;om;jcif; 442
75/ Counting Sort udk Visual Basic jzifha&;om;jcif; 446
76/ Insertion Sort udk Visual Basic jzifha&;om;jcif; 450
77/ Selection Sort with Exchange udk
tcef;(1)
Introduction pum;cs;D
Microsoft Visual Basic 6.0 onf Programming rsm;a&;om;&mwGif toH;k jyKaom
Computer Language wpfcjk zpfygonf/ ,cifu GWBASIC, BASIC, BASICA,
QBASIC wdr Yk w
S pfqifh ,cktcgwGif Visual Basic 4.0, Visual Basic 5.0, Visual
Basic 6.0 (Windows Mode) wGit f oH;k jyKEikd af om Programming Language rsm;jzifh
a&;om;cJhMuygonf/ Visual rSm tjrifESifhoufqdkifaom[kt"dyÜg,f&NyD; BASIC rSm
Beginners All Purpose Symbolic Instruction Code [kt"dygÜ ,f&ygonf/
yHk(1)
Contents
Microsoft Visual Basic 6.0 2 uuuGef
Open nmzuf½dS List Box xJwi G f Cursor 0ifaevdrrhf nf/ xdt k cg Browse udak ½G;yg/
VB6.EXE File ½S&
d mtqifqh ifo
h 0Ykd ifNy;D OK udEk ydS yf gu Visual Basic 6.0 yGiv
hf mrnf/
yHk(2)/
yHk(2)
yHk(3)
xdt
k cg New Project Dialog Box wpfckay:vmNyD; yHkrSeftm;jzifh Standard EXE
Smart Icon a½G;cs,fjcif;cHae&ygu OK udka½G;cs,f&ygrnf/ ykH(4)/
Contents
Microsoft Visual Basic 6.0 4 uuuGef
yHk(4)
yHk(5)
Contents
Microsoft Visual Basic 6.0 5 uuuGef
4if; Form yHkpHwGif Text, Memory Variable rsm;zefw;D &eftwGuf Visual Basic
wGit
f qifoifyh g½Sad eaom Toolbox udak c:,l&rnfjzpfygonf/ Toolbox udrk awGUygu
Menu Bar ½Sd View rSwqifha½G;yg/ yHk(6)/ xdktcg Toolbox ay:vmayrnf/ yHk(7)/
yHk(7)
yHk(6)
Icon udt
k oH;k jyKí Fahrenheit Degree, Centigrade Degree rsm;udk
Form xJwi
G af &;om;&rnf/ yH(k 8)/
yHk(8)
Contents
Microsoft Visual Basic 6.0 6 uuuGef
þuJoh Ykd Fahrenheit Degree, Centigrade rsm;udk zefw;D &mwGif Form1 xJoYkd Label
Icon udka½G;í Drag and Drop vkyy f g&ef/ xdt
k cg Form1 xJwiG f yH(k 9)ygyHpk t
H wdik ;f
jzpfaernf/
yHk(9)
yHk(10)
Contents
Microsoft Visual Basic 6.0 7 uuuGef
4if; Short Cut Menu \atmufq;kH jzpfaom Properties udak ½G;yg/ xdt k cg La-
bel1 ESihf oufqi
kd af om Properties udk yH(k 11)ygtwdik ;f jrifawGU&rnf/
yHk(11)
yHk(12)
4if;rS Short Cut Menu \atmufq;kH jzpfaom Properties udak ½G;cs,&f rnf/ xdt
k cg
Properties - Text1 Text1 TextBox ay:vmrnf/ yHk(13)/
yHk(13)
yHk(14)
yHk(15)
Contents
Microsoft Visual Basic 6.0 10 uuuGef
Text1 Text Box udk Double Click ESdyfí Private Sub Text1_Change() ESifh
End Sub ay:vmygu Procedure List Box udk Change tpm; KeyPress [kajymif;
&rnf/ xdaYk emuf Private Sub Text1_KeyPress(KeyAscii As Integer) ESifh End
Sub tMum;wGif atmufyg Program udka&;om;&efjzpfonf/ yHk(16)/
yHk(16)
yHk(17)
4if;zdik u
f kd odr;f vdyk gu Menu Bar ½Sd File udak ½G;Ny;D Pulldown Menu wGiyf g0ifaom
Save Project udak ½G;&efjzpfonf/ yH(k 18)? xdt k cg Save File as Dialog Box ay:vm
rnf/ File Name List Box wGif extest001 [ka&;Ny;D Save udk Mouse Left Click
vkyf&rnf/ yHk(19)/
Contents
Microsoft Visual Basic 6.0 11 uuuGef
yHk(18)
yHk(19)
xdtk cg Save Project As Dialog Box ay:vmNyD; File Name List Box wGif
extest1 [ka&;NyD; Mouse Left Click vky& f rnf/ yH(k 20)/ yxrodr;f aomzdik rf mS Form
File, Extension rSm .frm jzpfNy;D 'kw,
d trnfjzifo
h rd ;f aomzdik rf mS Visual Basic Project
File, Extension rSm .Vbp jzpfygonf/
Contents
Microsoft Visual Basic 6.0 12 uuuGef
yHk(20)
yHk(21)
yHk(22)
yHk(23)
txufyg Project File jzpfaom extest001 udk Run vdyk gu Menu Bar ½Sd Run
udak ½G;yg/ xdaYk emuf Start udak ½G;yg/ yH(k 24)? (odrYk [kw)f Short Cut Key (or) Short
Hand Key taejzifh Function Key jzpfaom F5 udE k ydS í
f vnf;&Edik af yonf/ (odrYk [kw)f
Menu Bar atmuf½dS Standard Toolbar rS Icon udk Left Click ESdyfjcif;jzifh
vnf;&Edik af yonf/ xdt k cg yH(k 25)ygtwdik ;f Text Box xJwiG f Cursor tqifoifah &muf
½Sad ernf/
yHk(24)
Contents
Microsoft Visual Basic 6.0 14 uuuGef
yHk(25)
yHk(26)
Contents
Microsoft Visual Basic 6.0 15 uuuGef
½SdNyD;om; extest001 File udkzGifhvdkygu Menu Bar ½Sd File udka½G;yg/ xdktcg
Pulldown Menu ay:vmrnf/ 4if;rS udak ½G;yg/ xdt
k cg Open
Project Dialog Box ay:vmNyD; 4if;rS extest001.vbp udak ½G;í Open udk Click
ESdyf&efjzpfonf/ yHk(27)/
yHk(27)
yHk(28)
yHk(29)
xdt
k cg yH(k 30)wGiaf zmfjyxm;onft h wdik ;f extest001 Dialog Box ay:vmayrnf/
, wdu
Yk kd toH;k jyKí Project File udkjyefvnfjyKjyifodrf;Edkif
ayonf/
yHk(30)
Contents
Microsoft Visual Basic 6.0 18 uuuGef
yHk(31)
yHk(32)
Contents
Microsoft Visual Basic 6.0 19 uuuGef
Caption - Factorial
Icon - C:\Program Files\Microsoft Visual Studio\Common\
Graphics\Icon\Misc xJro
S ifah wmf&m½kyyf u
kH akd ½G;xnfjh cif;jzpf
onf/
Syntax;
Cls ' Clear form background
xyfcg xyfcgtvkyv f yk &f rnfu
h pd rö sm;wGif txufyg Do ... Loop a&;xH;k udt k oH;k jyK
onf/ xdt k cg Text1 Text Box xJwiG f Cursor 0ifaernfjzpfNyD; 4if;wGif *Pef;wpfck
ck½dkufxnfh&rnf/ Oyrm - 4 [k½dkufNyD; Run Command Button udk Click vkyyf gu
Private Sub Command1_Click() ESihf End Sub Mum;½Sd Command rsm;udw k pfaMumif;
csi;f tvkyv f yk o
f mG ;rnf/ Cls a&;xH;k rSm Form ay:wGit f jcm;udprö sm;a&;xm;ygu ½Si;f vif;
ypf&efjzpfygonf/ a = Text1 rSm a xJwiG f 4 a&muf½v dS mrnf/ kount = 1 rSm kount xJ
wGif 1 a&muf½v dS mrnf/ k = 1 rSm k xJwiG f 1 udx k nfx h m;rnf/ Do While k<a+1 rSm
,cktcsed w f iG f k \wefzdk;rSm 1 jzpfaernf/ a \wefzdk;rSm 4 jzpfaeNyD; 1 jzifhaygif;ygu 5
jzpfrnf/ 1 onf 5 xufi,faeojzifh qufvyk &f efjzpfonf/ xdaYk Mumifh k wefz;kd onf 5
xufi,faeoíqufvyk rf nfuakd jymjcif;jzpfonf/ k = kount * k rSm kount \wefz;kd rSm
1? k \wefzdk;rSm 1? 4if;ESpfckajr§mufygu 1 om&rnf/ Left Hand Side jzpfaom kount
xJwiG f 1 a&muf½o dS mG ;rnf/ atmufwpfaMumif;qif;vmygu k \wefzdk;rSm 1? 1 jzifh
aygif;aomaMumifh 2 &rnf/ 4if;wefz;kd udk Left Hand Side jzpfaom k xJwiG f 2 a&muf½dS
oGm;rnf/ atmufwpfaMumif;jzpfaom Loop odq Yk ufrqif;bJ Do While k<a+1 odjYk yef
wufNy;D Condition udpk pd pfrnf/ k \wefz;kd rSm ,cktcg 2 jzpfae rnf/ 2 onf 5 xuf
i,faeojzifh atmufwpfaMumif;jzpfaom kount = kount * k odYk qif;vmrnf/ kount
Contents
Microsoft Visual Basic 6.0 21 uuuGef
yHk(33)
Contents
Microsoft Visual Basic 6.0 22 uuuGef
yHk(34)
tu,fírdrpd w
d Bf uKu
d *f Pef;ud½k u kd o f iG ;f Ny;D 2 ESihf rdr½d u
kd o
f iG ;f onfh *Pef;Mum; Prime
Number ta&twGuu f ½kd mS vdyk gu yH(k 35)ygtwdik ;f zefw;D wnfaqmuf&ef -
yHk(35)
tcef;(2)
Menu wnfaqmufjcif;
Menu wnfaqmuf&mwGif Menu Bar rS Tools Menu udka½G;yg/ xdkYaemuf
Pulldown Menu xJrS Menu Editor ... udka½G;yg/ yHk(36)/ xdktcg Menu Editor
Dialog Box wpfcak y:vmrnf/ yH(k 37)/
yHk(36)
yHk(37)
Caption nmzuf½dS Box wGif &Options [ka&;&ef/ Name nmzuf½dS Box wGif
Options [ktrnfowfrw S &f ef/ xdt
k cg atmufzuf½dS List Box wGif yH(k 38)ygtwdik ;f
jzpfay:vmrnf/
Contents
Microsoft Visual Basic 6.0 26 uuuGef
yHk(38)
txufygyH(k 38)wGif OK udk Mouse Left Click vkyyf gu yH(k 39)ygtwdik ;f jzpfay:vm
rnf/ 4if;onf Menu Bar jzpfonf/
yHk(39)
Contents
Microsoft Visual Basic 6.0 27 uuuGef
xdaYk emuf Pulldown Menu rsm;udq k ufvufzefw;D &rnf/ Menu Bar rS Tools
Menu udkjyefa½G;yg/ xdkYaemuf Pulldown Menu xJrS Menu Editor ... udka½G;yg/
xdt
k cg Menu Editor Dialog Box jyefvnfay:vmrnf/ Command Button wpfcjk zpf
aom udak ½G;yg/ xdaYk emuf Caption List Box ü &Test Buttons udjk znfph u G f
yg/ Name List Box ü TestButtons udjk znfph u G Nf y;D udak ½G;yg/ TestButtons udu k yfí
a&;&rnf/ Test ESifh Buttons udck gG íra&;&yg/ yH(k 40) wGiaf zmfjyxm;onft h wdik ;f jzpfvm
ygu OK udk Click vkyyf g/
yHk(40)
xdt
k cg yH(k 41)wGiaf zmfjyxm;ouJo
h Ykd Test Buttons onf Pulldown Menu (or)
Dropdown Menu wpfcjk zpfvmrnf/
Contents
Microsoft Visual Basic 6.0 28 uuuGef
yHk(41)
yHk(42)
Contents
Microsoft Visual Basic 6.0 29 uuuGef
Pulldown Menu wpfcjk zpfaom List Box udk Mouse Left Click ESy d yf gu aemuf
xyf Sub-Menu wpfcak y:xGuaf pvdyk gu Menu Editor ... udkjyefac:í
udka½G;yg/ xdkYaemuf udka½G;yg/ Caption List Box wGif N&umber, T&ext wdEYk iS hf
Number List Box wGif Number, Text wdu Yk jkd znfph u
G Nf y;D OK udk Mouse Left Click
vkyyf gu yH(k 43)wGif jrif&onft h wdik ;f Pulldown Menu (or) Dropdown Menu rsm;
toD;oD;jzpfvmrnf/
yHk(43)
tqdkyg Pulldown Menu wpfckjzpfaom List Box onf Word Wrap and
Autosize ESifh Check Box Mum;wGif ae&mjyefvnfajymif;a½TUvdy k gu Menu Bar ½Sd
Tools udka½G;yg/ Dropdown Menu wpfcjk zpfaom Menu Editor ... udjk yefvnfa½G;yg/
...&Check Box udak ½G;í Dropdown Arrow jzifah tmufq;kH udk a&mufatmifa½TU&ef/
xdek nf;wl ...&Number System udv k nf; atmufq;kH odaYk &mufatmifa½TUNy;D OK udk
Click vkyjf cif;jzifh &½SE
d ikd af yonf/ yH(k 44)? xdt
k cg yH(k 45)ygtwdik ;f Menu ajymif;vJomG ;ay
rnf/
Contents
Microsoft Visual Basic 6.0 30 uuuGef
yHk(44)
yHk(45)
yHk(46)
Pulldown Menu wpfcjk zpfaom Test Buttons udak ½G;ygujzpfvmrnfh Program udk
a&;om;jcif;
Pulldown Menu wpfcjk zpfaom Test Buttons udak ½G;ygu 4if;ESiv hf u
kd avsmnDaxG
jzpfap&ef Form wpfck Insert jyKvyk í f vdtk yfaomy½d*k &rfrsm;a&;om;&rnf/ Form
wpfcuk kd Insert jyKvyk v
f ykd gu Menu Bar ½Sd Project udka½G;yg/ xdkYaemuf Pulldown
Menu jzpfaom Add Form udk a½G;&efjzpfonf/ yHk(47)/
yHk(47)
Contents
Microsoft Visual Basic 6.0 32 uuuGef
yHk(48)
yHk(49)
yHk(50)
yHk(51)
Contents
Microsoft Visual Basic 6.0 34 uuuGef
yHk(52)
yHk(53)
yHk(54)
yHk(55)
Contents
Microsoft Visual Basic 6.0 38 uuuGef
yHk(56)
yHk(57)
yHk(58)
yHk(59)
Options Menu wGif xyfrí H Multiple Column List Box, Scroll Bars, Con-
trol Array wdkYudkzefwD;&ef/ yHk(60)/
yHk(60)
Contents
Microsoft Visual Basic 6.0 44 uuuGef
yHk(61)
tqdyk g Form yHkpHwGif tpDtpOfrsm;udk Run Edik &f eftwGuf atmufygwdik ;f jyifqif
&rnf/yHk(62)/
yHk(62)
yHk(63)
yHk(64)
Contents
Microsoft Visual Basic 6.0 47 uuuGef
yHk(65)
yHk(66)
xdt
k cg yH(k 67)ygtwdik ;f Menu Editor ay:vmrnf/ 4if; ...&Scroll Bars wGif
Active jzpfatmifxm;í Next Command Button udak ½G;yg/ xdaYk emuf Caption wGif
E&xit, Name wGif Exit [kjznfp h u
G í
f Left Arrow Button tm;a½G;ygu ...E&xit
onf E&xit jzpfomG ;ayrnf/ a½SUqH;k rSO;D aqmifonfh ... aysmufomG ;ayrnf/ xdaYk emuf
Exit \atmufwiG ½f adS om Pulldown Menu rsm;tm; qufvufzefw;D &efjzpfonf/ yH(k 67)?
yHk(68)/
Contents
Microsoft Visual Basic 6.0 49 uuuGef
yHk(67)
yHk(68)
Contents
Microsoft Visual Basic 6.0 50 uuuGef
xdt
k cg yH(k 69)ygtwdik ;f Menu rsm;ajymif;vJoGm;ayrnf/ Exit Command But-
ton tm;zsuyf pf&rnf/
yHk(69)
txufygyH(k 69)yg Pulldown Menu wpfcjk zpfaom Quit tm; Double Click ESdyf
íatmufygy½d*k &rftm;a&;om;&rnf -
Pulldown Menu wpfckjzpfaom Quit twGuf
Private Sub Quit_Click()
Unload Me
End
End Sub
---------------0-0-0---------------
txufyg y½d*k &rfrsm;udak &;&eftwGuf atmufyga&;xH;k rsm;udk od½&dS efvt
kd yfygonf/
Syntax;
Val(<String>)
String wpfct
k m; wGuí
f csuí
f &aom wefz;kd wpfct
k jzpf ajymif;vJay;onf/
Oyrm -
MyValue = Val("2457") ' Returns 2457
MyValue = Val(" 2 45 7") ' Returns 2457
MyValue = Val("24 and 57") ' Returns 24
Syntax;
If <Condition> Then <Statements>
[Else <Statements>]
End If
Contents
Microsoft Visual Basic 6.0 51 uuuGef
(Or)
If <Condition> Then
[<Statements>]
ElseIf <Conditon-n> Then
[<Statements>]] ...
[Else
<Statements>]]
End If
Oyrm -
Number = 53 'Initialize Variable
If Number < 10 Then
Digits = 1
ElseIf Number < 100 Then
'Condition evaluates to True so the next statement is executed.
Digits = 2
Else
Digits = 3
End If
Syntax;
<Object>.AddItem item, index
<Object>.Clear
<Object>.RemoveItem index
Oyrm -
Private Sub Form_Click()
Dim Entry, I, Msg 'Declare variables.
Msg = "Choose OK to add 100 items to your list box."
MsgBox Msg 'Display message.
For I = 1 To 100 'Count from 1 to 100.
Entry = "Entry " & I 'Create entry.
List1.AddItem Entry 'Add the entry.
Next I
Msg = "Choose OK to remove every other entry."
MsgBox Msg 'Display message.
Contents
Microsoft Visual Basic 6.0 52 uuuGef
For I = 1 To 50 'Determine how to
List1.RemoveItem I 'Remove every other
Next I 'Item.
Msg = "Choose OK to remove all items from the list box."
MsgBox Msg 'Display message.
List1.Clear 'Clear list box.
End Sub
Syntax;
<Object>.Bold [=boolean]
<Object>.Italic [=boolean]
<Object>.Underline [=boolean]
<Object>.Strikethrough [=boolean]
Oyrm -
Private Sub Form_Click()
Font.Bold = Not Font.Bold 'Toggle bold.
Font.StrikeThrough = Not Font.StrikeThrough 'Toggle Strikethrough
Font.Italic = Not Font.Italic 'Toggle italic
Font.Underline = Not Font.Underline 'Toggle underline
Font.Size = 16 'Set size property
If Font.Bold then
Print "Font weight is " & Font.Weight & " (bold)."
Else
Print "Font weight is " & Font.Weight & " (not bold)."
End If
End If
Syntax;
Oct(<Number>)
Oyrm -
MyOct = Oct(4) 'Returns 4
MyOct = Oct(8) 'Returns 10
MyOct = Oct(459) 'Returns 713
Syntax;
Hex(<Number>)
Oyrm -
MyHex = Hex(5) 'Returns 5
Contents
Microsoft Visual Basic 6.0 53 uuuGef
MyHex = Oct(8) 'Returns A
MyHex = Oct(459) 'Returns 1CB
Syntax;
Format(expression[,format[,firstdayofweek [,firstweekofyear]]])
Oyrm -
MyTime = #17:04:23#
MyDate = #January 27, 1993#
'Returns current system time in the system-defined long time format.
MyStr = Format(Time, "Long Time")
MyStr = Format(MyTime, "h:m:s") 'Returns "17:4:23"
MyStr = Format(MyTime, "hh:mm:ss AMPM")
'Returns "05:04:23 PM"
MyStr = Format(MyDate, "dddd, mmm d yyyy")
'Returns "Wednesday, Jan 27 1993"
'If format is not supplied, a string is returned.
MyStr = Format(23) 'Returns "23".
'User-defined formats.
MyStr = Format(5459.4, "##,##0.00") 'Returns "4,459.40".
MyStr = Format(334.9,"###0.00") 'Returns "334.90".
MyStr = Format(5, "0.00%") 'Returns "500.00%".
MyStr = Format("HELLO", "<") 'Returns "hello".
MyStr = Format("This is it", ">") 'Returns "THIS IS IT".
Syntax;
<Object>.BackColor [=color]
<Object>.ForeColor [=color]
Oyrm -
Private Sub Form_Load()
Timer1.Interval = 500
End Sub
Private Sub Timer1_Timer()
BackColor = QBColor(Rnd * 15)
ForeColor = QBColor(Rnd * 10)
Picture1.BackColor = QBColor(Rnd * 15)
Picture1.ForeColor = QBColor(Rnd * 10)
End Sub
Contents
Microsoft Visual Basic 6.0 54 uuuGef
Syntax;
RGB(red, green, blue)
Red, Green, Blue wefz;kd rsm;onf 0 ESihf 0255 Mum;½SMd uonf/
Oyrm -
Red = RGB(255, 0, 0) 'Return the value for Red.
I = 75 'Initialize offset.
RGBValue = RGB(I, 64 + I, 128 + I)
'Same as RGB(75, 139, 203).
MyObject.Color = RGB(255, 0, 0)
'Set the Color property of MyObject to Red.
Color Red Value Green Value Blue Value
Black 0 0 0
Blue 0 0 255
Green 0 255 0
Cyan 0 255 255
Red 255 0 0
Magenta 255 0 255
Yellow 255 255 0
White 255 255 255
Syntax;
<Object>.ListCount
<Object>.ListIndex [=index]
<Object>Selected(index) [=boolean]
Oyrm(1) -
Dim Player(0 To 2)
Dim Salary(0 To 2)
Private Sub Form_Load()
Dim I 'Declare Variable.
AutoSize = True
Player(0) = "Miggey McMoo" 'Enter data into arrays.
Player(1) = "Alf Hinshaw"
Player(2) = "Woofer Dean"
Salary(0) = "$234,500"
Salary(1) = "$158,900"
Contents
Microsoft Visual Basic 6.0 55 uuuGef
Salary(2) = "$1,030,500"
For I = 0 To 2 'Add names to list.
Combo1.AddItem Player(I)
Next I
Combo1.ListIndex = 0 'Display first item in list.
End Sub
Oyrm(2) -
Private Sub Form_Load()
Dim I 'Declare Variable.
'Fill the list box with screen font names.
For I = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(I)
Next I
End Sub
Syntax;
<Object>.Hide
<Object>.Show
Oyrm -
Private Sub Form_Click()
Dim Answer.Msg 'Declare Variable
Hide
Msg = "Choose OK to make the form reappear."
MsgBox Msg 'Display message.
Show 'Show form again.
End Sub
Contents
Microsoft Visual Basic 6.0 57 uuuGef
Syntax;
<Object>.Enabled [=boolean]
<Object>.Visible [=boolean]
<Object>.SetFocus
Oyrm -
Private Sub Form_Click()
Text1.Text = "" 'Clear the text box.
Command1.Caption = "Save" 'Put caption on button.
End Sub
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 58 uuuGef
tcef;(3)
Graphic rsm;ud
rsm;udk Windows yHkpHtwdkif;½SmazGjcif;
atmufyg yH(k 70)ygtwdik ;f Visual Basic 6.0 wGizf efw;D &ef/
(1)
(4)
yHk(70)
(2) (6)
(3)
(5)
Timer jzifhtcsdefudkzefwD;jcif;
atmufazmfjyygyH(k 71)ygtwdik ;f Visual Basic 6.0 wGizf efw;D &rnf-
(1)
yHk(71)
(2)
yHk(71)yg Form wGif (1)udk jzifzh efw;D xm;Ny;D (2)tm; jzifh zefw;D
xm;ygonf/ txufygtwdik ;f jyifqifNy;D ygu oufqikd &f mtydik ;f vduk f y½d*k &rfrsm;a&;om;
&efjzpfygonf/
Form qJGwif&mwGiftvkyfvkyf&eftwGuf
Private Sub Form_Load()
Timer1.Interval = 1000 'Set Time Interval
End Sub
Label1 wGiftcsdefjy&eftwGuf
Private Sub Timer1_Timer()
Label1.Caption = Time 'Update Time Display
End Sub
Syntax;
<Object>.Interval [=milliseconds]
Oyrm
Private Sub Form_Load()
Timer1.Interval = 900 'Set interval.
HScroll1.Min = 100 'Set minimum.
HScroll1.Max = 900 'Set maximum.
End Sub
Contents
Microsoft Visual Basic 6.0 63 uuuGef
Private Sub HScroll_Change()
'Set interval according to scroll bar value.
Timer1.Interval = 1000 - HScroll.Value
End Sub
Private Sub Timer1_Timer()
'Switch BackColor between red and blue.
If Picture1.BackColor = RGB(255, 0, 0) Then
Picture1.BackColor = RGB(0, 0, 255)
Else
Picture1.BackColor = RGB(255, 0, 0)
End If
End Sub
Time Function
Syntax;
Time
Oyrm
Mytime = Time 'Return Current System Time
Date Function
Syntax;
Date
Oyrm
MyDate = #February 12, 1985# 'Assign a date
Date = MyDate 'Change System Date.
Syntax;
Now ' Returns the current date and time according.
Oyrm
Today = Now 'Assign current system date and time
Day Function
Syntax;
Day(date)
Oyrm
MyDate = #February 12, 1969# 'Assign a date
MyDay = Day(MyDate) 'MyDay contains ® 12
Contents
Microsoft Visual Basic 6.0 64 uuuGef
Hour Function
Syntax;
Hour(time)
Oyrm
Mytime = #4:35:17 PM# 'Assign a time
MyHour = Hour(Mytime) 'MyHour contains 16
Minute Function
Syntax;
Minute(time)
Oyrm
Mtime = #4:35:17 PM# 'Assign a time
MyMinute = Minute(Mytime) 'MyMinute contains 85
Month Function
Syntax;
Month(date)
Oyrm
Mydate = #February 12, 1969# 'Assign a date
MyMonth = Month(Mydate) 'MyMonth contains 2
Second Function
Syntax;
Second(time)
Oyrm
Mytime = Time 'Returns current system time
MySecond = Second(Mytime) 'MySecond contains 17
Weekday Function
Syntax;
Weekday(date,[firstday of week])
Oyrm
MyDate = #February 12, 1969# 'Assign a date.
MyWeekDay = Weekday(MyDate) 'MyWeekDay contains 4 because
'MyDate represents a Wednesday.
Year Function
Syntax;
Year(date)
Contents
Microsoft Visual Basic 6.0 65 uuuGef
Oyrm
MyDate = #February 12, 1969# 'Assign a date.
MyYear = Year(MyDate) 'MyYear contains 1969.
yHk(72)
yHk(73)
Random Function
Initializes the random-number generator.
Syntax;
Randomize [number]
The number argument can be any valid numeric expression.
Oyrm
Randomize 'Initialize random-number generator.
MyValue = Int(6 * Rnd) + 1) 'Generate random value between 1 and 6
Syntax;
Rnd [(number)]
Returns a random number. The number argument can be any valid nu-
meric expression.
Move Method
Syntax;
<Object>.Move left, top, width, height
Contents
Microsoft Visual Basic 6.0 67 uuuGef
<Object>.Left [=value]
<Object>.Top [=value]
atmufyg yH(k 74)wGit
f m; Move Sample Title Bar jzifhzefwD;xm;&ef -
yHk(74)
atmufyg yH(k 75)tm; Move Method Example Title Bar jzifh zefwD;xm;&ef-
Contents
Microsoft Visual Basic 6.0 68 uuuGef
yHk(75)
tcef;(4)
yHk(76)
xdt
k cg Control Panel Dialog Box ay:vmrnf/ yHk(77)/
Contents
Microsoft Visual Basic 6.0 71 uuuGef
yHk(77)
Control Panel Dialog Box ½Sd Icon rsm;xJrS ODBC Data Sources [32bit] udk
Double Click ESdyfyg/ yHk(78)ygtwdkif; ODBC Data Source Administrator Dialog
Box ay:vmrnf/
Contents
Microsoft Visual Basic 6.0 72 uuuGef
yHk(78)
txufyg Dialog Box wGif User DSN, System DSN, File DSN, Drivers,
Tracing, Conection Pooling, About [lí Tab Command 7 ckyg½Sdygonf/ 4if;
Tab Command rsm;xJrS System DSN udka½G;yg/ yHk(79)ygtwdkif;jzpfay:vmrnf/
Contents
Microsoft Visual Basic 6.0 73 uuuGef
yHk(79)
yHk(80)
yHk(81)
yHk(82)
yHk(83)
xdaYk emuf OK Command Button udak ½G;cs,&f rnf/ xdt k cg ODBC Microsoft
Access Setup Dialog Box odjYk yefvnfa&muf½o
dS mG ;rnf/ yH(k 84)/
yHk(84)
yHk(85)
xdktcg yHk(85)yg ODBC Data Source Administrator Dialog Box odjYk yefvnf
a&muf½odS mG ;Ny;D System Data Sources: acgif;pOfatmufwiG f Name ® Test1, Driver
® Microsoft Access Driver(*.mdb) azmfjyaeayrnf/ xdaYk emuf Command But-
ton wpfcjk zpfaom OK udak ½G;cs,& f rnf/ xdt
k cg rlvae&mjzpfaom Control Panel
ae&modjYk yefvnfa&muf½o dS mG ;Ny;D Access 2002 Database File tm; Visual Basic
6.0 wGif toH;k jyKí&Edi k rf nf/ yH(k 86)/ Microsoft Access 2002 jzifwh nfaqmufxm;
aom C:\My Documents\Test1.mdb onf ODBC Data Sources (32bit) jzpfomG ;
ayrnf/
Contents
Microsoft Visual Basic 6.0 77 uuuGef
yHk(86)
---------------0-0-0---------------
Visual Basic 6.0 wGif ODBC Data Sources qJGwifjcif;
Visual Basic 6.0 udkzGifhyg/ Project1-Form1 (Form) ½Sd Form1 wGif atmufyg
yH(k 87)ygtwdik ;f wnfaqmufxm;&rnf/
yHk(87)
yHk(88)
yHk(89)
xdt
k cg Data Form Wizard - Introduction Dialog Box ay:vmrnf/ yH(k 90)/
yHk(90)
Contents
Microsoft Visual Basic 6.0 79 uuuGef
yHk(90)yg Dialog Box wGif From what profile do you want to load your
setting? acgif;pOfatmuf List Box udk (None) xm;NyD; Next udka½G;yg/
yHk(91)
yHk(92)
yHk(93)
yHk(94)
xdt
k cg Data Form Wizard - Form Dialog Box ay:vmrnf/ What name
do you want for the form? acgif;pOfatmuf List Box wGif rdrBd uKu
d Ef pS o
f uf&mtrnfukd
jznfhpGuf&ef/ Oyrm - Form2 [kjznfph u
G í
f Next udak ½G;&rnf/ yH(k 95)/
Contents
Microsoft Visual Basic 6.0 81 uuuGef
yHk(95)
yHk(95)wGif Next udak ½G;cs,yf gu Dara Form Wizard - Record Source Dialog
Box ay:vmrnf/
yHk(96)
yHk(97)
txufygyH(k 97)wGif rdrt d vd½k odS nfh Field rsm;udwk pfcck si;f tvduk f Right
Arrow Command Button jzifv h nf;aumif;? Field tm;vH;k udk Right Arrow ESpf
ckyg Command Button jzifv h nf;aumif;a½G;cs,Ef ikd yf gonf/ Column to Sort By:
acgif;pOfatmuf List Box wGif rdrt d aejzifh i,fpOfBu;D vdu k pf pD Ofvakd om Field rsm;udk
a½G;cs,v
f ukd a½G;cs,Ef ikd yf gonf/ xdaYk emuf Next udka½G;cs,fyg/ yHk(98)/
yHk(98)
Contents
Microsoft Visual Basic 6.0 83 uuuGef
yHk(99)
yHk(100)
txufygyH(k 100)wGif Finish Command Button udak ½G;cs,&f rnf/ yH(k 101)/
Contents
Microsoft Visual Basic 6.0 84 uuuGef
yHk(101)
yHk(101)wGif OK udak ½G;cs,&f rnf/ xdt
k cg yH(k 102)ygtwdik ;f jzpfay:vmrnf/
yHk(102)
yHk(103)
yHk(103)yg Form wGif Command Button udt k oH;k jyKí zdik zf iG &hf ef? xGu&f efwu
Ykd kd
zefw;D wnfaqmufxm;ygonf/ tqdyk g Form onf Form1 jzpfNyD; xGuf&ef Com-
mand Button udkESdyfygu 4if;y½dk*&rfxJrSxGufoGm;NyD;? zdkifzGifh&ef Command Button
udka½G;ygu Form2 jzifhpDpOfxm;aom Microsoft Access 2002 Database File
ay:vmayrnf/ xdaYk Mumifh Form2 udak tmufygtwdik ;f wnfaqmuf&ayrnf/ yH(k 104)/
yHk(104)
Contents
Microsoft Access 2002 86 uuuGef
yH(k 104)yg Identification Number;, Rank;, Name;, Department; [kteufa&mif
jzifah &;om;xm;aompmrsm;onf Label1, Label2, Label3, Label4 wdjYk zifw h nfaqmuf
xm;jcif;jzpfNy;D 4if;pmom;rsm;\nmzufwiG f wnfaqmufxm;aom Box rsm;rSm Text
Box rsm;jzifw h nfaqmufxm;ygonf/ Add, Update, Delete, Refresh, Close wdrYk mS
Command Button rsm;jzpfMuygonf/ 4if; Command Button 5 ck\nmzufwi G f
½So
d nfh Data Position Box rSm jzifw
h nfaqmufxm;ygonf/ Command
Button rsm;ESihf Adodc wdaYk tmufzufwiG ½f adS eaomZ,m;udk jzifw
h nfaqmuf
xm;Muygonf/
Label1 Label \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Label1
Alignment - 0 - Left Justify
AutoSize - True
Caption - Identification Number;
Label2 Label \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Label2
Alignment - 0 - Left Justify
AutoSize - True
Caption - Rank;
Label3 Label \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Label3
Alignment - 0 - Left Justify
AutoSize - True
Caption - Name;
Label4 Label \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Label4
Alignment - 0 - Left Justify
AutoSize - True
Caption - Department;
Text1 Text \ Properties wGiaf tmufygtwdi
k ;f jyifqif&ef-
Name - Text1
Alignment - 0 - Left Justify
DataField - Identification Number
DataSource - Adodc1
Contents
Microsoft Access 2002 87 uuuGef
Text2 Text \ Properties wGiaf tmufygtwdi
k ;f jyifqif&ef-
Name - Text2
Alignment - 0 - Left Justify
DataField - Rank
DataSource - Adodc1
Text3 Text \ Properties wGiaf tmufygtwdi
k ;f jyifqif&ef-
Name - Text3
Alignment - 0 - Left Justify
DataField - Name
DataSource - Adodc1
Text4 Text \ Properties wGiaf tmufygtwdi
k ;f jyifqif&ef-
Name - Text4
Alignment - 0 - Left Justify
DataField - Department
DataSource - Adodc1
Command1 Command Button \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Command1
Caption - &Add
Command2 Command Button \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Command2
Caption - &Update
Command3 Command Button \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Command3
Caption - &Delete
Command4 Command Button \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Command4
Caption - &Refresh
Command5 Command Button \ Properties wGiaf tmufygtwdi k ;f jyifqif&ef-
Name - Command5
Caption - &Close
Contents
Microsoft Access 2002 88 uuuGef
yHk(105) yHk(106)
ConnectionString - Provider=MSDASQL.1;DSN=TEST1;UID=;
PWD=;
RecordSource - Select [Identification Number], Rank, Name, De-
partment from Test1 Order By [Identification
Number]
Contents
Microsoft Access 2002 89 uuuGef
yHk(107) yHk(108)
DataGrid1 DataGrid \ Properties udk yH(k 107)? yH(k 108)wdjYk zifah zmfjytyfygonf/
txufyg Form2 udk Run í&Edik af p&eftwGuf vdtk yfaomy½d*k &rfrsm;a&;om;&ayrnf/
Adodc1 Adodc wGif Record Position twGuf
Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReason
Enum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset)
Adodc1.Caption =
"Record: " & CStr(Adodc1.Recordset. AbsolutePosition)
End Sub
Contents
Microsoft Access 2002 90 uuuGef
Add Command Button twGuf
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
End Sub
Update Command Button twGuf
Private Sub Command2_Click()
Adodc1.Recordset.Update
End Sub
Delete Command Button twGuf
Private Sub Command3_Click()
With Adodc1.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
End Sub
Refresh Command Button twGuf
Private Sub Command4_Click()
Adodc1.Refresh
End Sub
Close Command Button twGuf
Private Sub Command5_Click()
Form2.Hide
Form1.Show
End Sub
Mouse Pointer Position twGuf
Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = vbDefault
End Sub
---------------0-0-0---------------
Contents
Microsoft Access 2002 91 uuuGef
tcef;(5)
String ESifhqdkifaomudpö&yfrsm;
Syntax;
Len(strin/varname)
Oyrm -
MyString = "Hello World" 'Initialize Variable.
MyLen = Len(MyString) 'Returns 11.
Syntax;
Dim varname [([subscripts])][As [New] type[, varname
[([subscripts])][As [New] type]]...
Oyrm -
'Any Value and My Value are declared as Variant by default with
values set to Empty.
Dim AnyValue, MyValue
yHk(109)
yHk(110)
Syntax;
RSet strinvar = string
Oyrm -
MyString = "0123456789" 'Initialize String.
RSet MyString = "Right ->" 'MyString contains " Right ->".
yHk(111)
Contents
Microsoft Access 2002 96 uuuGef
Run Command Button twGuf
Private Sub Command1_Click()
Dim n As Variant
str1 = "1234567"
Cls
n = Text1: secondlast = 0: Last = 1
For k = 3 To n
term = secondlast + Last: secondlast = Last: Last = term
RSet str1 = Str(term)
Print k, str1
Next
End Sub
Exit Command Button twGuf
Private Sub Command2_Click()
Unload Me
End
End Sub
tqdyk gy½d*k &rfukd Run ygu atmufygyHkpHtwdkif;jrifawGU&rnf/ yHk(112)/
yHk(112)
Contents
Microsoft Access 2002 97 uuuGef
Astrisk rsm;zefwD;jcif;
atmufyg Form yHpk tH m; zefw;D wnfaqmufyg/ yH(k 113)/ 4if;wGif Command Button
rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdktyfaomy½dk*&rfrsm;a&;om;&ef
jzpfygonf/
yHk(113)
yHk(114)
yHk(115)
Contents
Microsoft Access 2002 99 uuuGef
Run Command Button twGuf
Private Sub Command1_Click()
str1 = "12345"
10 Cls
N = Val(Text1)
If N >= 31 Or N Mod 2 = 0 Then
Print "Between 3 and 19 ": GoTo 10
End If
Dim A(31, 31)
For i = 1 To N
For j = 1 To N
A(i, j) = 0
Next j
Next i
dat = 1: i = 1: j = N \ 2 + 1: A(i, j) = dat
For Kount = 1 To N * N - 1
i = i - 1: j = j + 1
If i < 1 And j > N Then i = i + 2: j = j - 1
If i < 1 Then i = N
If j > N Then j = 1
If A(i, j) <> 0 Then i = i + 2: j = j - 1
dat = dat + 1: A(i, j) = dat
Next: Print
Print " Magic Square "; N
Print " ~~~~~~~~~~~~ ": Print
For i = 1 To N
For j = 1 To N
RSet str1 = A(i, j): Print str1;
'Print using;" ";str1; 'A(i,j);
Next j: Print
Next i
End Sub
Exit Command Button twGuf
Private Sub Command2_Click()
Unload Me
Contents
Microsoft Access 2002 100 uuuGef
End
End Sub
yHk(116)
yHk(117)
yHk(118)
aemufwpfenf;
atmufyg Form yHpk tH m; zefw;D wnfaqmufyg/ yH(k 119)/ 4if;wGif ,
, rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdt
k yf
aomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
yHk(119)
yHk(120)
Syntax;
Mid(string, start, length)
Oyrm -
MyString = "Mid Function Demo" 'Create text string.
FirstWord = Mid(MyString, 1, 3) 'Returns "Mid".
LastWord = Mid(MyString, 14, 4) 'Returns "Demo".
MidWord = Mid(MyString, 5) 'Returns "Function Demo".
aemufwpfenf;
atmufyg Form yHpk tH m; zefw;D wnfaqmufyg/ yH(k 121)/ 4if;wGif ,
, rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdt
k yf
aomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
yHk(121)
yHk(122)
---------------0-0-0---------------
Contents
Microsoft Access 2002 104 uuuGef
tcef;(6)
Mathematics ESifhqdkifaomudpö&yfrsm;
½dk;½dk;udef;pOfwef; 1, 2, 3, 4, ...? qwdk;udef; 1, 2, 4, 8, 16, ...? xyfudef; 1, 4, 9, 16,
25, ... udef;pOfwef;wdkYudk y½dk*&rfa&;om;jcif;
atmufyg Form yHpk tH m; zefw;D wnfaqmufyg/ yH(k 123)/ 4if;wGif
rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdktyfaomy½dk*&rfrsm;a&;om;&ef
jzpfygonf/
yHk(123)
yHk(124)
APudef;pOfwef;udk y½dk*&rfa&;om;jcif;
atmufyg Form yHpk t H m; zefw;D wnfaqmufyg/ yH(k 125)/ 4if;wGif ,
, rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdt
k yf
aomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
yHk(125)
yHk(126)
Contents
Microsoft Access 2002 107 uuuGef
GP udef;pOfwef;udk y½dk*&rfa&;om;jcif;
atmufyg Form yHpk t H m; zefw;D wnfaqmufyg/ yH(k 127)/ 4if;wGif ,
, rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif vdt
k yf
aomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
yHk(127)
yHk(128)
yHk(129)
yHk(130)
yHk(131)
yHk(132)
yHk(133)
yHk(134)
yHk(135)
yHk(136)
---------------0-0-0---------------
Contents
Microsoft Access 2002 113 uuuGef
tcef;(7)
Access 2002 ½Sd Database File tm; Visual Basic 6.0 ESifh Update jyKvkyfjcif;
atmufyg Form yHkpHtm; zefwD;wnfaqmufxm;&rnf/ yHk(137)/ 4if;wGif
rsm;jzifzh efw;D xm;Ny;D Command Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;
a&;om;&ef jzpfygonf/
yHk(137)
yHk(138)
rSm jzifw
h nfaqmufxm;ygonf/ Adodc
\ Properties wGif yH(k 139)? yH(k 140)ygtwdik ;f jyifqifxm;&rnf/
(Name) - Wado
Caption - Empty
ConnectionString - PROVIDER = MSDASQL; dsn = Test2; uid=;
pwd=;
RecordSource - Select [Roll Number], Name, Myanmar, English,
Maths, Total from Test2
Contents
Microsoft Access 2002 115 uuuGef
yHk(139) yHk(140)
Connection String \ nmzuf Box wGif Cursor csygu Ellipsis trSwt f om;yg
Command Button udk Mouse Left Click jzifha½G;cs,fygu yHk(141)ygtwdkif;
Property Pages Dialog Box ay:vmrnf/ General Tab Command Button udak ½G;
cs,yf g/ Use Connection String [ka&;om;xm;onfh Option Button udak ½G;cs,yf g/
xdaYk emuf4if;acgif;pOfatmuf List Box ü PROVIDER=MSDASQL;dsn=Test2;
uid=;pwd=;udjk znfp h u
G í
f OK udak ½G;cs,&f ayrnf/
Contents
Microsoft Access 2002 116 uuuGef
yHk(141)
yHk(142)
Contents
Microsoft Access 2002 117 uuuGef
Text1 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - Roll Number
Text - Empty
Text2 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - Name
Text - Empty
Text3 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - Myanmar
Text - Empty
Text4 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - English
Text - Empty
Text5 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - Maths
Text - Empty
Text6 Text Box \ Properties wGiaf tmufygtwdi k ;f jyifqifjznfph u
G &f ef-
DataSource - Wado
DataField - Total
Text - Empty
Form2 \ Command Button rsm;twGuf y½d* k &rfrsm;tm;atmufygtwdik ;f a&;om;
&rnf/
(3)bmomaygif;jcif; Command Button twGuf
Private Sub Command1_Click()
Wado.Recordset.MoveFirst
Do While Wado.Recordset.EOF = False
Wado.Recordset("Total") = Wado.Recordset("Myanmar") +
Wado.Recordset("English") +
Wado.Recordset("Maths")
Wado.Recordset.Update
Contents
Microsoft Access 2002 118 uuuGef
Wado.Recordset.MoveNext
Loop
Wado.Recordset.MoveFirst
End Sub
rlvae&modkYjyef
yefoGm;jcif; Command Button twGuf
Private Sub Command2_Click()
Form2.Hide
Form1.Show
End Sub
Record Position jyo&eftwGuf
Private Sub Wado_MoveComplete(ByVal adReason As ADODB.Event
ReasonEnum, ByVal pError As ADODB.Error, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.
Recordset)
Wado.Caption = "Record: " & CStr(Wado.Recordset.AbsolutePosition)
End Sub
tqdyk gy½d*k &rfukd Run ygu yH(k 143)twdik ;f azmfjyrnfjzpfonf/
yHk(143)
Contents
Microsoft Access 2002 119 uuuGef
DataGrid jjzif
zifh Update jyKvkyfjcif;
atmufyg Form yHkpHtm; zefwD;wnfaqmufxm;&rnf/ yHk(144)/ 4if;wGif
rsm;jzifzh efw;D xm;Ny;D Command Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;
a&;om;&ef jzpfygonf/
yHk(144)
yHk(145)
yHk(146)
yHk(147)
xdaYk emuf Apply Command Button udak ½G;cs,yf g/ OK ae&m Command Button
wGif Close ay:vmygu4if;udka½G;cs,f&rnf/ xdktcg Toolbox xJü Adodc ESifh
DataGrid wdYk Icon rsm;a&muf½Sdvmrnf/ yHk(148)/
yHk(148)
Contents
Microsoft Access 2002 122 uuuGef
yHk(149)
yHk(150)
xdaYk emuf DataGrid ay:odYk Mouse Left Click jzifha½G;cs,fNyD; Mouse Right
Click udkESdyfyg/ yHk(151)yg Short Cut Menu ay:vmygu Retrieve Fields udx k yfrH
a½G;cs,&f rnf/
Contents
Microsoft Access 2002 124 uuuGef
yHk(151)
xdt
k cg yH(k 152)yg Retrieve fields Dialog Box ay:vmygu Yes udx
k yfraH ½G;cs,yf g/
yHk(152)
yHk(153)
rlvae&modkYjyef
yefoGm;jcif; Command Button twGuf
Private Sub Command2_Click()
Form2.Hide
Form1.Show
End Sub
Contents
Microsoft Access 2002 126 uuuGef
Record Position jyo&eftwGuf
Private Sub Wado_MoveComplete(ByVal adReason As ADODB.Event
ReasonEnum, ByVal pError As ADODB.Error, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.
Recordset)
Wado.Caption = "Record: " & CStr(Wado.Recordset.AbsolutePosition)
End Sub
tqdyk gy½d*k &rfukd Run ygu yH(k 154)twdik ;f azmfjyrnfjzpfonf/
yHk(154)
yHk(155)
yHk(156)
(3)bmomaygif;jcif; Command Button twGuf
Private Sub Command1_Click()
Wado.Recordset.MoveFirst
b = 1 'Record Counter
Do While Wado.Recordset.EOF = False
Wado.Recordset("Total") = Wado.Recordset("Myanmar") +
Wado.Recordset("English") + Wado.Recordset("Maths")
If Wado.Recordset("Myanmar") < 40 Or Wado.Recordset("English")
< 40 Or Wado.Recordset("Maths") < 40 Then
Wado.Recordset("Result") = "Fail"
Else
Wado.Recordset("Result") = "Pass"
End If
If Wado.Recordset("Myanmar") < 40 And Wado.Recordset("English")
< 40 And Wado.Recordset("Maths") < 40 Then
Wado.Recordset("Amount of Fail") = "3"
ElseIf Wado.Recordset("Myanmar") < 40 And
Wado.Recordset("English") < 40 And
Wado.Recordset("Maths") >= 40 Then
Wado.Recordset("Amount of Fail") = "2"
Contents
Microsoft Access 2002 129 uuuGef
ElseIf Wado.Recordset("Myanmar") < 40 And
Wado.Recordset("English") >= 40 And
Wado.Recordset("Maths") < 40 Then
Wado.Recordset("Amount of Fail") = "2"
ElseIf Wado.Recordset("Myanmar") >= 40 And
Wado.Recordset("English") < 40 And
Wado.Recordset("Maths") < 40 Then
Wado.Recordset("Amount of Fail") = "2"
ElseIf Wado.Recordset("Myanmar") < 40 And
Wado.Recordset("English") >= 40 And
Wado.Recordset("Maths") >= 40 Then
Wado.Recordset("Amount of Fail") = "1"
ElseIf Wado.Recordset("Myanmar") >= 40 And
Wado.Recordset("English") < 40 And
Wado.Recordset("Maths") >= 40 Then
Wado.Recordset("Amount of Fail") = "1"
ElseIf Wado.Recordset("Myanmar") >= 40 And
Wado.Recordset("English") >= 40 And
Wado.Recordset("Maths") < 40 Then
Wado.Recordset("Amount of Fail") = "1"
Else
Wado.Recordset("Amount of Fail") = Null
End If
Wado.Recordset.Update
Wado.Recordset.MoveNext
b=b+1
Loop
Wado.Recordset.MoveFirst
Text1.Text = b - 1
End Sub
rlvae&mjyefoGm;jcif; Command Button twGuf
Private Sub Command2_Click()
Form2.Hide
Form1.Show
End Sub
Contents
Microsoft Access 2002 130 uuuGef
tqdyk gy½d*k &rfukd Run ygu yH(k 157)twdik ;f azmfjyrnfjzpfonf/
yHk(157)
Access 2002 Database File ½Sd Query File tm;ac:oHk;jcif;
Access 2002 Database File jzpfaom Test2.mdb wGif Position [lí Field
topf(1)ckxyfrx H nfyh g/ Result Field udk Descending, Amount of Fail Field udk
Ascending, Total Field udk Descending jzifp h x
D m;aom ptest2 trnf½dS Query
File wpfcw
k nfaqmufxm;yg/ xdaYk emuf Visual Basic 6.0 jzifyh ½d*k &rfa&;om;rnfqu
kd
yxrOD;pGmyHk(158)ygtwdkif; Form1 udw k nfaqmuf&rnf/
yHk(158)
Contents
Microsoft Access 2002 131 uuuGef
yHk(158)wGif rsm;jzifhzefwD;xm;NyD; Command Button rsm;wGif
vdt k yfaomy½d*k &rfrsm; a&;om;&ef jzpfygonf/
zdkifzGifjcif; Command Button twGuf
Private Sub Command1_Click()
Form1.Hide
Form2.Show
End Sub
yHk(159)
Contents
Microsoft Access 2002 132 uuuGef
Adodc \ Properties wGiaf tmufygwdu
Yk jkd yifqifjznfph u
G &f ef-
(Name) - Wado
Caption - Empty
ConnectionString - PROVIDER = MSDASQL; dsn = Test2; uid=;
pwd=;
RecordSource - Select [Roll Number], Name, Myanmar, English,
Maths, Total, Result, [Amount of Fail], Position
from ptest2
yHk(160)
---------------0-0-0---------------
Contents
Microsoft Access 2002 135 uuuGef
tcef;(8)
yHk(161)
yHk(162)
yHk(163)
Contents
Microsoft Access 2002 139 uuuGef
yHk(164)
Contents
Microsoft Access 2002 140 uuuGef
yHk(165)
yHk(166)
InputBox
InputBox(Prompt[,Title][,default][,xpos][,ypos][,helpfile,context])
MessageBox
MessageBox(Prompt[,buttons][,Title][,helpfile,context])
---------------0-0-0---------------
yHk(167)
yHk(168)
yHk(169)
yHk(170)
yHk(171)
yHk(172)
yHk(173)
yHk(174)
yHk(175)
yHk(176)
yHk(177)
yHk(178)
Syntax;
QBColor(<Color>)
MyForm.BackColor = QBColor(ColorCode)
---------------0-0-0---------------
Contents
Microsoft Access 2002 160 uuuGef
yHk(179)
yHk(180)
yHk(181)
yHk(182)
yH(k 182)yg Form wGif Fans, Music System wdu Yk kd Menu Editor... jzifv
h nf;aumif;
TextBox, wdjYk zifv
h nf;aumif;wnfaqmufxm;Ny;D Properties
rsm;udk jyifqifjznfph u
G Nf y;D aemuf Command Button toD;oD;wGif vdt k yfaomy½d*k &rfrsm;
udk a&;om;&ayrnf/
General, Declaration wGif -
Dim LastItem As Integer
Menu Editor Dialog Box wGif -
Caption - &Fans
Name - Fans
Caption - &Music System
Name - mnMusic
mnMusic \ Properties udk yH(k 183)ygtwdi
k ;f Index tm; 0 (Zero) xm;ay;&rnf/
xdrk o
S m y½d*k &rf Run í&ayrnf/
Contents
Microsoft Access 2002 165 uuuGef
yHk(183)
yHk(184)
---------------0-0-0---------------
yHk(185)
yHk(185)yg Form wGif File, Add, Delete, Exit wdu Yk kd Menu Editor... jzifv
h nf;
aumif;? TextBox, wdkYjzifhvnf;aumif;wnfaqmufxm;NyD;
Properties rsm;udjk yifqifjznfp
h u
G Nf y;D aemuf Command Button toD;oD;wGiv f tkd yfaom
y½dk*&rfrsm;udk a&;om;&ayrnf/
Menu Editor Dialog Box wGif -
Caption Name
&File mnFile
&Add mnAdd
&Delete mnDelete
E&xit mnExit
mnSep
Contents
Microsoft Access 2002 167 uuuGef
mnSep udk Caption a&;&efrvdkyg/ Name wGio f m mnSep [kowfrw
S í
f 4if;
Properties \ Index wGif 0 (Zero) ay;&ayrnf/
General, Declaration wGif -
Dim LastItem As Integer
Form Load wGif -
Private Sub Form_Load()
LastItem = 0
mnDelete.Enabled = False
End Sub
Add Menu twGuf -
Private Sub mnAdd_Click(Index As Integer)
LastItem = LastItem + 1
Load mnSep(LastItem)
mnSep(LastItem).Caption = "ITEM" + Str(LastItem)
mnDelete.Enabled = True
End Sub
Delete Menu twGuf -
Private Sub mnDelete_Click()
Unload mnSep(LastItem)
LastItem = LastItem - 1
If LastItem = 0 Then
mnDelete.Enabled = False
End If
End Sub
Exit Menu twGuf -
Private Sub mnExit_Click()
Unload Me
End
End Sub
mnSep Click twGuf -
Private Sub mnSep_Click(Index As Integer)
MsgBox "The selected item is " + Str(Index)
End Sub
tqdyk g y½d*k &rfukd Run ygu yH(k 186)ygtwdik ;f jrifawGU&ayrnf/
Contents
Microsoft Access 2002 168 uuuGef
yHk(186)
Add Menu udak ½G;ygu ITEM rsm;wdk;vmNyD; Delete Menu a½G;ygu ITEM rsm;
ysuo
f mG ;onfuakd wGU½S&d ayrnf/
---------------0-0-0---------------
yHk(187)
yHk(188)
yHk(189)
xdt
k cg Toolbox wGif yH(k 190)ygtwdik ;f CommonDialog Control a&muf½v
dS m
ayrnf/
Contents
Microsoft Access 2002 170 uuuGef
yHk(190)
yHk(191)
---------------0-0-0---------------
yHk(192)
Contents
Microsoft Access 2002 172 uuuGef
yHk(192)yg Form wGif File, Points, Line, Clear, Exit wdu
Yk kd Menu Editor... jzifh
vnf;aumif;? vIy½f mS ;&rnft
h csed u
f mvudk Timer wdjYk zifv
h nf;aumif; wnfaqmuf
xm;Ny;D Properties rsm;udjk yifqifjznfph u
G Nf y;D aemuf Pulldown Menu toD;oD;wGiv
f t
kd yf
aom y½d*k &rfrsm;udk a&;om;&ayrnf/
Timer1 Timer Properties wGif -
Interval - 100
Caption Name
&File mnFile
...&Points mnPoints
...&Lines mnLines
...&Clear mnClear
...- mnSep
...E&xit mnExit
General, Declaration wGif -
Dim Points
Form Load twGuf -
Private Sub Form_Load()
Points = 0
End Sub
Clear Pulldown Menu twGuf -
Private Sub mnClear_Click()
Points = 0
Form1.Cls
End Sub
Exit Pulldown Menu twGuf -
Private Sub mnExit_Click()
Unload Me
End
End Sub
Contents
Microsoft Access 2002 173 uuuGef
Lines Pulldown Menu twGuf -
Private Sub mnLines_Click()
Dim Counter
For Counter = 1 To 100 Step 1
Line -(Rnd * Form1.ScaleWidth, Rnd * Form1.ScaleHeight),
RGB(0, 0, 0)
Next
End Sub
Points Pulldown Menu twGuf -
Private Sub mnPoints_Click()
Points = 1
End Sub
vIyf½Sm;&rnfhtcsdefumvtwGuf -
Private Sub Timer1_Timer()
Dim R, G, B
Dim X, Y
Dim Counter
If Points = 1 Then
For Counter = 1 To 100 Step 1
R = Rnd * 255
G = Rnd * 255
B = Rnd * 255
X = Rnd * Form1.ScaleWidth
Y = Rnd * Form1.ScaleHeight
Form1.PSet (X, Y), RGB(R, G, B)
Next
End If
End Sub
---------------0-0-0---------------
Contents
Microsoft Access 2002 174 uuuGef
yHk(193)
tqdyk gy½d*k &rfukd Run Ny;D Form xJukd Mouse Left Click vkyyf gu yH(k 194)ygtwdik ;f
jrifawGU&rnf/
Contents
Microsoft Access 2002 175 uuuGef
yHk(194)
---------------0-0-0---------------
yHk(195)
tqdyk gy½d*k &rfukd Run Ny;D Form xJukd Mouse Left Click vkyyf gu yH(k 196)ygtwdik ;f
jrifawGU&rnf/
yHk(196)
---------------0-0-0---------------
Contents
Microsoft Access 2002 177 uuuGef
yHk(197)
yHk(198)
---------------0-0-0---------------
yHk(199)
yHk(200)
yHk(201)
yHk(202)
yHk(203)
c:\windows\system\mschrt20.ocx
yHk(202)yg Form yHpk w
H iG f , Command Button wdjYk zifw
h nfaqmuf
xm;Ny;D Properties rsm;udjk yifqifjznfph u
G Nf y;D aemuf Command Button toD;oD;wGif
vdt
k yfaom y½d*k &rfrsm;udak &;om;&ayrnf/
Run Command Button twGuf -
Private Sub Command1_Click()
With Form1.MSChart1
.chartType = VtChChartType3dArea
.ColumnCount = 10
.RowCount = 10
For Column = 1 To 10
For Row = 1 To 10
Contents
Microsoft Visual Basic 6.0 187 uuuGef
.Column = Column
.Row = Row
Next Row
Next Column
End With
End Sub
Exit Command Button twGuf -
Private Sub Command4_Click()
Unload Me
End
End Sub
txufygy½d*k &rfukd Run ygu yHk(204)ygtwdkif;jrifawGU&ayrnf/
yHk(204)
yHk(203)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 188 uuuGef
SS Tab
c:\windows\system\tabctl32.ocx
yHk(205)
Contents
Microsoft Visual Basic 6.0 189 uuuGef
yHk(206)
MSFlexGrid
c:\windows\system\msflxgrd.ocx
yHk(207)
yH(k 207)yg Form yHpk H Program udk Run yguatmufygtwdik ;f jrifawGU&rnf/ yH(k 208)/
yHk(208)
yHk(209)
Contents
Microsoft Visual Basic 6.0 195 uuuGef
yHk(210)
yHk(211)
Contents
Microsoft Visual Basic 6.0 196 uuuGef
yHk(212)
yHk(213)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 197 uuuGef
yHk(214)
tqdyk g y½d*k &rfukd Run NyD; rdrdtvdk½Sd&m Row (or) Column wdu Yk akd ½G;cs,yf gu
Grid Line Cell tuGu½ f dS Cell Reference udk yHk(215)ygtwdkif;azmfjyvdrfhrnf/
Contents
Microsoft Visual Basic 6.0 198 uuuGef
yHk(215)
---------------0-0-0---------------
RichTextBox
c:\windows\system\richtx32.ocx
yHk(216)
yHk(216)yg Form yHkpHwGif , Command Button wdjYk zifw
h nf
aqmufxm;Ny;D Properties rsm;udjk yifqifjznfph u
G Nf y;D aemuf Command Button toD;oD;
wGiv
f t kd yfaom y½d*k &rfrsm;udak &;om;&ayrnf/
Contents
Microsoft Visual Basic 6.0 199 uuuGef
yHk(217)
Contents
Microsoft Visual Basic 6.0 200 uuuGef
yH(k 217)yg b,fbufwiG ½f adS eaompmom;tm; Selected Text vkyNf y;D ? yH(k 218)? Add
Text Command Button udak ½G;cs,y f gu yH(k 219)ygtwdik ;f jzpfay:vmrnf/
yHk(218)
yHk(219)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 201 uuuGef
CommonDialog
c:\windows\system\comdlg32.ocx
yHk(220)
yHk(221)
yHk(222)
txufyg Dialog Box wGif Files of type: nmzuf½dS List Box ü Dropdown
Arrow jzpfaom udak ½G;cs,yf gu Text File ESihf Rich Text Format File trsK;d tpm;
(2)ckxrJ S BuKu
d &f mzdik t
f rsK;d tpm;udk a½G;cs,í
f Open Command Button udak ½G;cs,yf gu
a½G;cs,fjcif;cH&aom *.txt (or) *.rtf File rsm;yGifhvmayrnf/ yHk(223)/
yHk(223)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 205 uuuGef
c:\windows\system\mscomctl.ocx
TabStrip Toolbar StatusBar
yHk(224)
Form yHp k t
H wGi;f ½Sd Toolbar udak ½G;cs,í
f Right Click ESyd yf g/ xdaYk emuf Properties
udak ½G;cs,yf gu yH(k 225)ygtwdik ;f Property Pages Dialog Box ay:vmrnf/
yHk(225)
Property Pages Dialog Box xJ½dS General, Buttons, Picture Tab Command
Button (3)ck x J r S Buttons Tab Command Button ud k a ½G ; cs,f y g/ xd k Y a emuf
4if;xJwiG yf g0ifaomtcsut
f vufrsm;tm; atmufygtwdik ;f jyifqifjznfph u
G &f ef -
Index Caption Key Tag
1 Cut Button1 1
2 Copy Button2 2
3 Paste Button3 3
Toolbar xJ½Sd Button rsm;twGuf -
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "Button2":
Clipboard.Clear
Clipboard.SetText Text1.SelText
Contents
Microsoft Visual Basic 6.0 207 uuuGef
Case "Button1":
Clipboard.Clear
Clipboard.SetText Text1.SelText
Text1.Text = " "
Case "Button3":
Text1.SelText = Clipboard.GetText()
End Select
End Sub
Exit Command Button twGuf -
Private Sub Command1_Click()
Unload Me
End
End Sub
tqdyk g y½d*k &rfukd Run NyD; Text Box xJwiG f pmrsm;½du k Ef ydS í
f rdrt d vd½k &dS mpmrsm;udk
Selected Text (or) Drag jyKvy k u
f m ul;jcif;? jzwfjcif;? uyfjcif;wdu Yk akd qmif½u G Ef ikd yf gonf/
y½d*k &rfxrJ S xGuv f ykd gu Exit Command Button udak ½G;cs,&f efjzpfygonf/
---------------0-0-0---------------
yHk(226)
txufyg y½d*k &rfukd Run NyD; Add Button udak ½G;cs,yf gu Enter Button Title
\acgif;pOfatmuf List Box wGif rdrt d vd½k &dS mpmom;ud½k u
kd Ef ydS Nf y;D OK udak ½G;cs,yf g/
yHk(227)? yHk(228)/
yHk(227)
yHk(228)
yHk(229)
yHk(230)
Add Panel udak ½G;cs,y f gu Enter Panel Title \acgif;pOfatmuf List Box wGif
rdrt
d vd½k &dS mpmom;ud½k u
kd Ef ydS Nf y;D OK udka½G;cs,fyg/ yHk(231)? yHk(232)/
Contents
Microsoft Visual Basic 6.0 212 uuuGef
yHk(231)
yHk(232)
yHk(233)
yHk(234)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 214 uuuGef
yHk(235)
yHk(236)
yHk(237)
---------------0-0-0---------------
yHk(238)
yHk(239)
Property Pages Dialog Box xJ½dS General, Images, Color Tab Command
Button (3)ckxJrS Images Tab Command Button udak ½G;cs,y f g/ xdaYk emuf 4if;xJwiG f
yg0ifaom Insert Picture... Command Button udak ½G;cs,yf g/ xdt k cg rdrt d vd½k o dS nfh
*.bmp File (odr
Yk [kw)f *.ico File ½So
d nfh vrf;aMumif;rsm;ud½k mS azGa½G;cs,í f zdik rf sm;tm;
qJw
G if&rnf/ yH(k 240)/
Contents
Microsoft Visual Basic 6.0 218 uuuGef
yHk(240)
yHk(241)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 219 uuuGef
yHk(242)
yHk(243)
Contents
Microsoft Visual Basic 6.0 220 uuuGef
Property Pages Dialog Box xJ½dS General, Tabs, Font, Picture Command
Button (4)ckxJrS Tabs Tab Command Button udak ½G;cs,y
f g/ xdaYk emuf 4if;xJwiG f
yg0ifaomtcsut
f vufrsm;udk atmufygtwdik ;f jznfph u
G &f ef -
Index Caption Tag
1 Department One
2 Items Two
3 Branches Three
Tab Command Button rsm; Click vkyf&eftwGuf -
Private Sub TabStrip1_Click()
If TabStrip1.SelectedItem.Tag = "One" Then
Text1.Text = "Sales Department"
Text2.Text = "Purchase Department"
Text3.Text = "Admin Department"
ElseIf TabStrip1.SelectedItem.Tag = "Two" Then
Text1.Text = "Keyboard"
Text2.Text = "Monitor"
Text3.Text = "Hard Disk"
ElseIf TabStrip1.SelectedItem.Tag = "Three" Then
Text1.Text = "London"
Text2.Text = "New York"
Text3.Text = "Singapore"
End If
End Sub
Exit Command Button twGuf -
Private Sub Command1_Click()
Unload Me
End
End Sub
yHk(244)
yHk(245)
yHk(246)
yHk(247)
c:\windows\system\mscal.ocx
yHk(248)
tqdyk g y½d*k &rfukd Run ygu ,aeYwiG ½f adS ernfh &uf? v? ckEpS f jyu©'ed u
f akd zmfjyrnf
jzpfonf/
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 224 uuuGef
yHk(249)
yHk(250)
yHk(251)
yHk(251)wGif OLE Box xJoaYkd &mufaeaom Page Maker 6.5 Icon tm; Double
Click ESdyfjcif;jzifh Page Maker 6.5 Application Package Run vmayrnf/
Call Direct Command Button udak ½G;cs,jf cif;jzifh Page Maker 6.5 Application
Package Run vmrnft h jyif c:\vb6\vb601.p65 zdik yf gwdu
k ½f u
kd yf iG v
hf mNy;D tvd½k &dS mjyKvyk f
Edik af yrnf/
4if;y½d*k &rfrx
S u
G v
f ykd gu Exit Command Button tm;a½G;cs,&f efjzpfonf/
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 226 uuuGef
jr§m;rsm;udkywfjcmvnfvSnfhonfhy½dk*&rfudka&;jcif;
yHk(252)
tcef;(9)
yHk(253)
yHk(254)
Contents
Microsoft Visual Basic 6.0 230 uuuGef
yHk(255)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 235 uuuGef
yHk(256)
yHk(257)
Contents
Microsoft Visual Basic 6.0 236 uuuGef
yHk(258)
yHk(259)
yHk(259)yg Form yHkpHwGif , , rsm;jzifh
zefwD;xm;NyD; oufqdkif&m Properties rsm;wGifjyifqifjznfhpGufNyD;aemuf Command
Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
a1 - Adodc Properties twGuf -
(Name) - a1
Align - 0 - vbAlignNone
BOFAction - 0 - adDoMoveFirst
ConnectingString - provider=msdasql;dsn=exam01;uid=;pwd=;
EOFAction - 0 - adDoMoveLast
Font - MS Sans Serif, Bold, 8
RecordSource - select [Roll Number], Name, Myanmar, English,
Maths,Total,Result,[Amount of Fail] from
exam01 order by [Roll Number]
Contents
Microsoft Visual Basic 6.0 243 uuuGef
yHk(260)
yHk(261)
yHk(262)
Contents
Microsoft Visual Basic 6.0 251 uuuGef
yHk(263)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 252 uuuGef
Access 2002 ½Sd Database File twGif;rS Table File rsm;tm; Form wpfckjzifh
Append jyKvkyfjcif;
atmufyg Form yHpk t
H m; zefw;D wnfaqmufxm;&rnf/ yH(k 264)/
yHk(264)
yHk(264)yg Form yHkpHwGif , , rsm;jzifh
zefwD;xm;NyD; oufqdkif&m Properties rsm;wGifjyifqifjznfhpGufNyD;aemuf Command
Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
a1 - Adodc Properties twGuf -
(Name) - a1
Align - 0 - vbAlignNone
BOFAction - 0 - adDoMoveFirst
ConnectingString - provider=msdasql;dsn=exam01;uid=;pwd=;
EOFAction - 0 - adDoMoveLast
Font - MS Sans Serif, Bold, 8
RecordSource - select [Identification Number],Rank,Name,
Department from Test1 order by [Identification
Number]
Contents
Microsoft Visual Basic 6.0 253 uuuGef
Access 2002 ½Sd Database File twGif;rS Table File twGif;½Sd Record tm;½Smjcif;
atmufyg Form yHpk tH m; zefw;D wnfaqmufxm;&rnf/ yH(k 265)/
yHk(265)
yHk(265)yg Form yHpk w H iG f , , , ,
rsm;jzifh zefw;D xm;Ny;D oufqikd &f m Properties rsm;wGijf yifqifjznfph u
G Nf y;D
aemuf Command Button rsm;wGif vdt k yfaomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
a1 - Adodc Properties twGuf -
(Name) - a1
Align - 0 - vbAlignNone
BOFAction - 0 - adDoMoveFirst
ConnectingString - provider=msdasql;dsn=exam02;uid=;pwd=;
EOFAction - 0 - adDoMoveLast
Font - MS Sans Serif, Bold, 8
RecordSource - select [Identification Number], Rank, Name,
Department from Test1 order by [Identification
Number]
Contents
Microsoft Visual Basic 6.0 256 uuuGef
yHk(266)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 258 uuuGef
tcef;(10)
yHk(267)
yHk(268)
xdt
k cg VisData Window Dialog Box wpfcak y:vmrnf/ yH(k 269)/
Contents
Microsoft Visual Basic 6.0 259 uuuGef
yHk(269)
4if; Window xJrS Menu Bar wpfcjk zpfonfh File udak ½G;cs,&f efjzpfonf/ New...
ud k x yf r H a ½G ; ygu Visual Basic 6.0 rS w nf a qmuf E d k i f o nf h atmuf y gzd k i f r sm;
ay:vmayrnf/ yHk(270)/
yHk(270)
Contents
Microsoft Visual Basic 6.0 260 uuuGef
yHk(271)
yHk(272)
yHk(273)
Contents
Microsoft Visual Basic 6.0 261 uuuGef
yHk(274)
yHk(275)
Contents
Microsoft Visual Basic 6.0 262 uuuGef
yHk(276)
xdak emuf Add Field Dialog Box xyfraH y:vmNy;D rdrBd uKw d ifprD x
H m;aom Field
Name, Field Type, Field Size rsm;udo
k wfrw
S Nf y;D OK udak ½G;cs,&f rnf/ Field tm;vH;k
owfrw
S Nf y;D ygu Close Command Button udak ½G;cs,yf g/ yHk(277)/
yHk(277)
Contents
Microsoft Visual Basic 6.0 263 uuuGef
xdt
k cg yH(k 278)ygtwdik ;f jrifawGU&rnf/
yHk(278)
yHk(279)
yHk(280)
Contents
Microsoft Visual Basic 6.0 265 uuuGef
yHk(281)
yHk(282)
Contents
Microsoft Visual Basic 6.0 266 uuuGef
yHk(283)
yHk(284)
Contents
Microsoft Visual Basic 6.0 267 uuuGef
yHk(285)
yHk(286)
yHk(287)
Form2 wGiy
f g0ifaom Toolbox Icon rsm;rSm udak vhvmygu Label,
Text Box, Command Button, Data wdkYyg0ifNyD; 4if;wdkY\ Properties
rsm;udk jyifqifjznfph u
G Nf y;D aemuf Command Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;
a&;om;&rnfjzpfonf/
lblLabels(0) - Label Properties rSm
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - Opaque
Caption - LabourID:
DataFormat - General
Font - MS Sans Serif, Regular, 8
Index - 0
WordWrap - False
lblLabels(1) - Label Properties rSm
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - Opaque
Contents
Microsoft Visual Basic 6.0 269 uuuGef
Caption - Name:
DataFormat - General
Font - MS Sans Serif, Regular, 8
Index - 1
WordWrap - False
lblLabels(2) - Label Properties rSm
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - Opaque
Caption - Date of Birth:
DataFormat - General
Font - MS Sans Serif, Regular, 8
Index - 2
WordWrap - False
lblLabels(3) - Label Properties rSm
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - Opaque
Caption - Salary:
DataFormat - General
Font - MS Sans Serif, Regular, 8
Index - 3
WordWrap - False
txtFields(0) - Text Properties rSm
(Name) - txtFields
Alignment - 0 - Left Justify
BorderStyle - 1 - Fixed Single
DataField - LabourID
DataFormat - General
DataSource - Data1
Contents
Microsoft Visual Basic 6.0 270 uuuGef
MultiLine - False
Data1 - Data Properties rSm
(Name) - Data1
Align - 2 - Align Bottom
BOFAction - 0 - Move First
DatabaseName-C:\Program Files\Microsoft Visual Studio\VB98\Test01.mdb
EOFAction - 0 - Move Last
ReadOnly - False
RecordsetType - 1 - Dynaset
RecordSource - Test01
cmdAdd - Command Button Properties rSm
(Name) - cmdAdd
Caption - &Add
Font - MS Sans Serif, Regular, 8
cmdDelete - Command Button Properties rSm
(Name) - cmdDelete
Caption - &Delete
Font - MS Sans Serif, Regular, 8
cmdRefresh - Command Button Properties rSm
(Name) - cmdRefresh
Caption - &Refresh
Font - MS Sans Serif, Regular, 8
cmdUpdate - Command Button Properties rSm
(Name) - cmdUpdate
Caption - &Update
Font - MS Sans Serif, Regular, 8
cmdClose - Command Button Properties rSm
(Name) - cmdClose
Caption - &Close
Font - MS Sans Serif, Regular, 8
Contents
Microsoft Visual Basic 6.0 272 uuuGef
yHk(288)
xdaYk emuf Menu Bar ½Sd Project udka½G;yg/ xdkYaemuf Pulldown Menu xJrS
Add Data Report udxk yfraH ½G;cs,&f rnf/ yH(k 289)/
yHk(289)
Contents
Microsoft Visual Basic 6.0 275 uuuGef
yHk(290)
yHk(291)
yHk(292)
yHk(292)
yHk(293)
yHk(294)
Contents
Microsoft Visual Basic 6.0 278 uuuGef
yHk(295)
yHk(296)
yHk(297)
yHk(298)
Contents
Microsoft Visual Basic 6.0 280 uuuGef
xdt
k cg Data Link Properties Dialog Box ay:vmrnf/ 4if;rS Provider
Tab Command Button udak ½G;í Microsoft Jet 3.51 OLE DB Provider udak ½G;cs,f
yg/ yHk(299)/
yHk(299)
xdaYk emuf Connection Tab Command Button udak ½G;cs,yf g/ yH(k 300)ygtwdik ;f
1. Select or enter a database name: List Box wGif Database File Name awmif;
ygu rdru d , kd w
f ikd f Database File Name ½duk x
f nfjh cif;jzifv
h nf;aumif;? udx k yfrH
a½G;cs,jf cif;jzifv h nf;aumif; tvd½k adS om Database File Name udak ½G;cs,yf g/ yH(k 301)/
Contents
Microsoft Visual Basic 6.0 281 uuuGef
yHk(300)
yHk(301)
yHk(302)
Contents
Microsoft Visual Basic 6.0 282 uuuGef
xdek nf;wl Data Link Properties Dialog Box \ Tab Command Button
rsm;jzpfMuaom Advanced yH(k 303) ESihf All yH(k 304)wdw
Yk iG rf nfonft
h csurf Qajymif;vJ&ef
rvdb k J OK udak ½G;cs,&f efjzpfygonf/
yHk(303)
yHk(304)
Contents
Microsoft Visual Basic 6.0 283 uuuGef
yHk(305)
yHk(306)
Contents
Microsoft Visual Basic 6.0 284 uuuGef
yHk(307)
yHk(308)
Contents
Microsoft Visual Basic 6.0 285 uuuGef
yHk(309)
yHk(310)
yHk(311)
yHk(312)
yHk(313)
yHk(314)
xdt
k cg yH(k 315)ygtwdik ;f jzpfay:vmrnf/
yHk(315)
Contents
Microsoft Visual Basic 6.0 289 uuuGef
xdek nf;twdik ;f Label (4)ckzefwD;NyD; Labour ID, Name, Date of Birth, Sal-
ary ponfjzift
h rnfowfrw S yf g/ yH(k 316)? yH(k 317)/
yHk(316)
yHk(317)
yHk(318)
xdt
k cg yH(k 319)ygtwdik ;f jzpfay:vmrnf/
Contents
Microsoft Visual Basic 6.0 291 uuuGef
yHk(319)
yHk(320)
yHk(321)
yHk(322)
yHk(323)
Contents
Microsoft Visual Basic 6.0 294 uuuGef
yHk(324)
yHk(325)
----------0-0-0----------
Contents
Microsoft Visual Basic 6.0 295 uuuGef
yHk(326)
yHk(327)
OLE Data
lblLabels(0) - lblLabels Properties twGuf
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - 1 - Opaque
Caption - LabourID:
Font - MS Sans Serif, Regular, 8
Index - 0
WordWrap - False
lblLabels(1) - lblLabels Properties twGuf
(Name) - lblLabels
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - 1 - Opaque
Caption - Name:
Font - MS Sans Serif, Regular, 8
Index - 1
WordWrap - False
Contents
Microsoft Visual Basic 6.0 297 uuuGef
Case vbDataActionMoveNext
Case vbDataActionMoveLast
Case vbDataActionAddNew
Case vbDataActionUpdate
Case vbDataActionDelete
Case vbDataActionFind
Case vbDataActionBookmark
Case vbDataActionClose
End Select
'Screen.MousePointer = vbHourglass
End Sub
OLEField Double Click twGuf
Private Sub oleFields_DblClick(Index As Integer)
'this is the way to get data into an empty ole control
'and have it saved back to the table
oleFields(Index).InsertObjDlg
End Sub
----------0-0-0----------
Toolbox xJwGif Crystal Report Smart Icon xnfhjcif;
Toolbox wGif Right Click ESdyfyg/ xdktcg Short Cut Menu ay:vmygu
Components... udx
k yfraH ½G;cs,&f rnf/ yH(k 328)/
yHk(328)
Contents
Microsoft Visual Basic 6.0 303 uuuGef
Components Dialog Box ay:vmygu Crystal Report Control 4.6 udak ½G;
NyD; Check vky&f rnf/ xdaYk emuf Apply, OK udx
k yfraH ½G;cs,&f rnf/ yH(k 329)/
yHk(329)
yHk(330)
----------0-0-0----------
Contents
Microsoft Visual Basic 6.0 304 uuuGef
yHk(331)
yHk(332)
Contents
Microsoft Visual Basic 6.0 305 uuuGef
yHk(333)
yHk(334)
yHk(335)
Create Report Expert Dialog Box wGif Data File Command Button udk
xyfrHa½G;cs,f&rnf/ yHk(336)
yHk(336)
Choose Database File Dialog Box xyfraH y:vmNy;D rdrt d oH;k jyKvo
kd nfh Da-
tabase File udxk yfraH ½G;cs,&f ef List Files of Type:List Box udk Access Files (or)
User Default [kajymif;yg/ rdrt d vd½k o
dS nfh Drives:, Directories: wdt
Yk m; ajymif;vJí
tvd½k o
dS nfh Microsoft Database File udak ½G;cs,Nf y;D Add Command Button udk
a½G;cs,f&rnf/ yHk(337)
Contents
Microsoft Visual Basic 6.0 307 uuuGef
yHk(337)
Choose Database File Dialog Box \trSm;jcpf Close Button udak ½G;jcif;jzifh
aomfvnf;aumif;? Done Command Button udak ½G;jcif;jzifah omfvnf;aumif; xyfrH
aqmif½u
G &f rnf/ xdt
k cg Choose Database File Dialog Box aysmufomG ;rnf/ yH(k 338)
Contents
Microsoft Visual Basic 6.0 308 uuuGef
yHk(338)
yHk(339)
yHk(340)
xdaYk emuf Next>> Command Button udka½G;cs,fyg/ yHk(341)/
yHk(341)
xdt
k cg Tab Command wpfcjk zpfaom 3: Sort odaYk &muf½o dS mG ;rnf/ txufyg
yH(k 341)wGif rdrt
d yk pf zk UGJ vdo
k nfh Field tm; tkypf zk UGJ Edik o
f nf/ tkypf zk UGJ &ef rvdt
k yfygu
Preview Report udx k yfraH ½G;yg/ yH(k 342)/
Contents
Microsoft Visual Basic 6.0 310 uuuGef
yHk(342)
yHk(343)
xdaYk emuf Menu Bar ½Sd Insert udka½G;cs,fyg/ Pulldown Menu wpfcjk zpfaom
Text Field udka½G;cs,fyg/ yHk(344)/
Contents
Microsoft Visual Basic 6.0 312 uuuGef
yHk(344)
xdt
k cg Edit Text Field Dialog Box ay:vmNy;D acgif;pOftm;rdrpd w
d Bf uKu
d f
zefw;D í&ayonf/ yH(k 345)/ xdaYk emuf Accept Command Button udak ½G;cs,yf g/
yHk(345)
yHk(346)
xdt
k cg Format String Dialog Box ay:vmrnf/ yHk(347) 4if;rS Alignment
wGif Centered udk a½G;Ny;D OK udx
k yfraH ½G;cs,yf gu acgif;pOfpmom; tv,fño
§d mG ;ayrnf/
yHk(348)
yHk(347)
Contents
Microsoft Visual Basic 6.0 314 uuuGef
yHk(348)
yHk(349)
Contents
Microsoft Visual Basic 6.0 315 uuuGef
xdt
k cg File Save As Dialog Box ay:vmrnf/ rdrpd w
d Bf uKu
d o
f rd ;f vdo
k nfh
zdik t
f rnfuakd y;Ny;D OK udk Click vkyf&rnf/ yHk(350)/
yHk(350)
Crystal Reports Title Bar onfvnf; [Untitled Report #1] r[kwaf wmhbJ
[c:\program files\microsoft visual studio\vb98\std09.rpt] [líajymif;vJomG ;ay
rnf/ yHk(351)/
yHk(351)
----------0-0-0----------
Contents
Microsoft Visual Basic 6.0 316 uuuGef
yHk(352)
xdt
k cg Log On Server Dialog Box topfwpfcak y:vmrnf/ yH(k 353)
yHk(353)
yHk(354)
Choose SQL Table Dialog Box xJrS SQL Tables: acgif;pOfatmuf½Sd List
Box wGif rdrp
d w
d Bf uKu
d f Table File udadk ½G;cs,&f rnf/ Oyrm - exam01 udak ½G;cs,yf g/
Add Command Button udx k yfraH ½G;cs,yf g/ Close Button udak ½G;cs,yf gu yH(k 355)
ygtwdik ;f jzpfvmrnf/
yHk(355)
yHk(356)
yHk(357)
yHk(358)
yHk(359)
Contents
Microsoft Visual Basic 6.0 320 uuuGef
yHk(360)
txufygyHk(360)wGifazmfjyxm;aom Crystal Report File tm;odrf;vdkygu
Menu Bar wGi½ f o
dS nfh File udak ½G;cs,yf g/ Pulldown Menu wpfcjk zpfaom Save udk
a½G;cs,yf g/ xdt
k cg File Save As Dialog Box ay:vmrnf/ rdrpd w d Bf uKud v
f rf;aMumif;
wGif Report File Name udjk znfph u G Nf y;D OK Command Button udak ½G;cs,&f rnf/
yHk(361)/
Contents
Microsoft Visual Basic 6.0 321 uuuGef
yHk(361)
----------0-0-0----------
Crystal Report jzifh Graphic File ½dkufxkwfjcif;
yxrOD;pGm Visual Basic 6.0 wGif "gwfyHkrsm;yg0ifaom Access File udk
wnfaqmufxm;&rnf/ "gwfyrkH sm;udk Windows BitMap File Format jzifo h m Data
Entry jyKvyk &f rnf/ Access 2000 xufapmaom ,cif Access File rsm;twGurf l
Crystal Report \vkyfydkifcGifhjzpfaom Create Report Expert Dialog Box ay:vm
atmifzefw;D í Data File Command Button udak ½G;&rnf/ Access 2000 ESihf txuf
Access File rsm;twGur f l Crystal Report \vkyfydkifcGifhjzpfaom Create Report Ex-
pert Dialog Box ay:vmatmifzefw;D í SQL/ODBC File Command Button udk
a½G;&rnf/
yHk(362)
Contents
Microsoft Visual Basic 6.0 322 uuuGef
yHk(363)
yHk(364)
Create Report Expert Dialog Box ay:vmNy;D Table File jzpfonfh Photo01
File ay:vmrnf/ yHk(365)/
Contents
Microsoft Visual Basic 6.0 323 uuuGef
yHk(365)
yHk(366)
yHk(367)
yHk(368)
yHk(369)
yHk(370)
Design View wGif Band (5)ckyg½Sr d nfjzpfonf/ Title, Page header, De-
tails, Page footer, Summary wdjYk zpfMuonf/ Title onf acgif;pOfBu;D twGujf zpfNy;D ?
Page header onf pm½Guw f ikd ;f wGiyf g½Srd nfh tkypf ak cgif;pOfrsm;? &ufp?GJ pmrsuEf mS eHygwfrsm;
jzpfEikd of nf/ Details onf Record rsm;azmfjy&eftwGuf Template rsm;jzpfayonf/
Page footer onfpm½Gut f oD;oD;\atmufq;kH wGiyf g0if&rnfh &ufp?GJ pmrsuEf mS eHygwfrsm;
jzpfEikd yf gonf/ Details ESifh Page footer udk "gwfyrkH sm;xnfo h iG ;f &efoifw
h ifrh QwpGmjcm;
&rnf/ xdaYk emuf Menu Bar ½Sd Insert udka½G;yg/ Pulldown Menu jzpfaom Data-
base Field udx k yfraH ½G;cs,&f rnf/ yH(k 371)
Contents
Microsoft Visual Basic 6.0 327 uuuGef
yHk(371)
xdtk cg Insert Database Field Dialog Box rS Field wpfcjk zpfaom photos
udka½G;NyD; Insert Command Button udak ½G;cs,&f rnf/ yH(k 372)
yHk(372)
Contents
Microsoft Visual Basic 6.0 328 uuuGef
yHk(373)
yHk(374)
tqdyk g Crystal Report File tm; File -> Save udak ½G;Ny;D Report File Name
ay;&efjzpfonf/
----------0-0-0----------
Contents
Microsoft Visual Basic 6.0 329 uuuGef
yHk(375)
Crystal Report
Microsoft Visual Basic 6.0 wGif Menu Bar wpfcjk zpfaom Add-in udak ½G;cs,f
yg/ xdaYk emuf Pulldown Menu xJrS Report Designer... jzifh *.rpt File wpfzikd u f kd
wnfaqmufxm;&rnf/ Oyrm - c:\program files\microsoft visual studio\vb98\
exam01.rpt udw k nfaqmufxm;&rnf/ yH(k 376)/
Contents
Microsoft Visual Basic 6.0 330 uuuGef
yHk(376)
yHk(377)
xdtk cg VisData Dialog Box ay:vmvdrrhf nf/ 4if;rS Menu Bar jzpfaom File
udak ½G;cs,yf g/ xdaYk emuf New udx
k yfraH ½G;cs,&f rnf/ yH(k 378)/
Contents
Microsoft Visual Basic 6.0 332 uuuGef
yHk(378)
yHk(379)
Contents
Microsoft Visual Basic 6.0 333 uuuGef
yHk(380)
yHk(381)
Contents
Microsoft Visual Basic 6.0 334 uuuGef
Database Windows Dialog Box wGif Properties udak ½G;cs,yf g/ xdaYk emuf
Right Click ESy
d yf gu Sub-Menu wpfcak y:vmrnf/ xdk Sub-Menu xJrS New Table
udak ½G;cs,yf g/ yH(k 382)/
yHk(382)
yHk(383)
Contents
Microsoft Visual Basic 6.0 335 uuuGef
yHk(384)
yHk(385)
Field Name wpfcc k si;f oGi;f Ny;D ygu OK Command Button udak ½G;cs,&f rnf/
Field Name xyfrrH oGi;f vdak wmhygu Close Command Button udak ½G;cs,yf g/ xdt k cg
yHk(386)ygtwdkif;jzpfay:vmrnf/
Contents
Microsoft Visual Basic 6.0 336 uuuGef
yHk(386)
Index Field owfrw
S v f ykd gu Add Index Command Button udak ½G;cs,&f rnf/
xdt
k cg Add Index to Luck01 Dialog Box ay:vmygu Name List Box, In-
dexed Fields List Box wdt Yk m; rdrpd w
d Bf uKu
d o
f wfrw
S Nf y;D OK Command Button udk
a½G;cs,yf g/ xyfrí
H Close Command Button udk a½G;cs,f&rnf? yHk(387)/
yHk(387)
Contents
Microsoft Visual Basic 6.0 337 uuuGef
xdt
k cg rlv Table Structure Dialog Box odjYk yefvnfa&muf½o
dS mG ;rnf/ yH(k 388)/
yHk(388)
yHk(389)
yHk(390)
Contents
Microsoft Visual Basic 6.0 339 uuuGef
yHk(391)
yHk(392)
xdt
k cg VisData Dialog Box ay:vmrnf/ Enter New Table Name acgif;pOf
atmuf Text Box ü rdrw d nfaqmufvo
kd nfh Table Name udjk znfph u
G &f rnf/ Oyrm -
Luck02 [kjznfp
h u
G Nf y;D OK Command Button udak ½G;cs,&f rnf/ yH(k 394)/
Contents
Microsoft Visual Basic 6.0 340 uuuGef
yHk(393)
yHk(394)
yHk(395)
Contents
Microsoft Visual Basic 6.0 341 uuuGef
yHk(396)
yHk(396)yg Form yHpk w
H iG yf g0ifaom Toolbox Icon rsm;rSm udak vhvmygu
Label, Text Box, Command Button, Data, Frame wdkYyg0ifNyD;
4if;wdkY\ Properties rsm;udk jyifqifjznfhpGufNyD;aemuf Command Button rsm;wGif
vdt
k yfaomy½d*k &rfrsm; a&;om;&rnfjzpfonf/
Label1 - Label Properties rSm
(Name) - Label1
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - Opaque
BorderStyle - 1 - Fixed Single
Caption - uHprf;rnfhta&&twGuf (qkrt
J a&twGu)f
Font - -Win---Kalaw, Bold, 18
WordWrap - False
Contents
Microsoft Visual Basic 6.0 342 uuuGef
Align - None
BOFAction - 0 - Move First
Caption - Data1
Connect - Access
DatabaseName - C:\Program Files\LuckyDraw\Lucky.mdb
EOFAction - 0 - Move Last
Font - MS Sans Serif, Regular, 8
RecordsetType - 0 - Table
Frame1 - Frame Properties rSm
(Name) - Frame1
BorderStyle - 1 - Fixed Single
Caption - Empty
Font - MS Sans Serif, Regular, 8
Frame2 - Frame Properties rSm
(Name) - Frame2
BorderStyle - 1 - Fixed Single
Caption - Empty
Font - MS Sans Serif, Regular, 8
Frame3 - Frame Properties rSm
(Name) - Frame3
BorderStyle - 1 - Fixed Single
Caption - Empty
Font - MS Sans Serif, Regular, 8
Frame4 - Frame Properties rSm
(Name) - Frame4
BorderStyle - 1 - Fixed Single
Caption - Empty
Font - MS Sans Serif, Regular, 8
Contents
Microsoft Visual Basic 6.0 346 uuuGef
sn = Text3
en = 0
d = Int(Rnd() * c) + 1
Do While zaw = True
MyData.Index = "Luckno"
MyData.Seek "=", d
If MyData.NoMatch Then
zaw = False
Else
d = Int(Rnd() * c + 1)
End If
Loop
Text6 = d
Text4 = d
MyData.AddNew
MyData("Luckno") = Text6
MyData.Update
Text6.ForeColor = "65535"
Text7 = 0
Data1.Refresh
End Sub
y½dk*&rfrSxGuf&ef Command Button2 twGuf
Private Sub Command2_Click()
Unload Me
End
End Sub
uHprf;rJtrnfpm&if;Munfh&ef Command Button3 twGuf
Private Sub Command3_Click()
Dim MyDb As Database, MyData As Recordset, MyDatapp As Recordset
Dim ss As Integer
Set MyDb = Workspaces(0).OpenDatabase("c:\Program Files\
LuckyDraw\Lucky.mdb")
Contents
Microsoft Visual Basic 6.0 348 uuuGef
yHk(397)
Contents
Microsoft Visual Basic 6.0 350 uuuGef
yHk(398)
yHk(399)
AutoSize - False
BackStyle - Opaque
BorderStyle - 0 - None
Caption - uHprf;rJta&&twGufxnfhyg (uHprf;rJta&twGux
f nf&h ef)
Font - -Win---Taungyi, Bold, 24
WordWrap - False
Frame1 - Frame Properties rSm
(Name) - Frame1
BorderStyle - 1 - Fixed Single
Caption - Empty
Font - MS Sans Serif, Regular, 8
Command1 - CommandButton Properties rSm
(Name) - Command1
Caption - ydwf&&ef (ydw& f ef)
BorderStyle - 1 - Fixed Single
Font - -Win---Yadanapon, Bold, 28
ydwf&ef Command Button1 twGuf
Private Sub Command1_Click()
Form3.Hide
Unload Form3
Form1.Show
End Sub
yHk(400)
Contents
Microsoft Visual Basic 6.0 353 uuuGef
yHk(401)
AllowUpdate - True
BorderStyle - 1 - Fixed Single
Caption - None
DataMode - 0 - Bound
DataSource - Data1
Font - MS Sans Serif, Regular, 8
Data1 - Data Properties rSm
(Name) - Data1
Align - 0 - None
BOFAction - 0 - Move First
Connect - Access
DatabaseFile - C:\Program Files\LuckyDraw\Lucky.mdb
EOFAction - 0 - Move Last
Font - MS Sans Serif, Regular, 8
RecordsetType - 1 - Dynaset
RecordsetSource - Luck02
Command1 - CommandButton Properties rSm
(Name) - Command1
Caption - ydwf&&ef (ydw& f ef)
BorderStyle - 1 - Fixed Single
Font - -Win---Yadanapon, Bold, 20
ydwf&ef Command Button1 twGuf
Private Sub Command1_Click()
Unload Me
End Sub
Data1 Reposition twGuf
Private Sub Data1_Reposition()
Data1.Caption = " Record: " & (Data1.Recordset.AbsolutePosition + 1)
End Sub
yHk(402)
Oyrm - qkrt J a&twGuf 6 ckom½SNd y;D ? uHrpJ rf;&rnft
h a&twGurf mS 125 OD;½Syd gu
qkrt
J a&twGun f mzuf½dS tqdyk g y½d*k &rfukd Run ygu yH(k 402)ygtwdik ;f jrifawGU&rnf/
qkrJta&twGuf 6 ck½Sdojzifh uHprf;&ef Command Button tm; 6 cgESdyfNyD;ygu
uHprf;rJuek af eygNy[D al om Message Box jyvmrnf/ yHk(403)/
yHk(403)
tqdyk g Message Box tm; ydw&f ef Command Button udEk ydS yf gu Message
Box aysmufoGm;NyD;? uHprf;&ef Command Button ygaysmufomG ;vdrr
hf nf/ yH(k 404)/
Contents
Microsoft Visual Basic 6.0 357 uuuGef
yHk(404)
uHprf;rJtrnfpm&if;Munf&h ef Command Button udEk ydS yf gu yH(k 405)ygtwdik ;f jrifawGU
&rnf/
yHk(405)
yHk(406)
yHk(406)yg Form yHkpHwGif , , rsm;jzifh
zefwD;xm;NyD; oufqdkif&m Properties rsm;wGifjyifqifjznfhpGufNyD;aemuf Command
Button rsm;wGif vdt
k yfaomy½d*k &rfrsm;a&;om;&ef jzpfygonf/
Contents
Microsoft Visual Basic 6.0 359 uuuGef
tqdyk gy½d*k &rfukd Run ygu yH(k 406)ygtwdik ;f jrifawGU&rnf/ Age Command Button
udk ESyd yf gu toufrsm;wGucf suaf y;rnfjzpfNy;D ? Services Year Command Button udk
ESyd yf gu trIxrf;oufrsm;wGucf suaf y;vdrrhf nf/ Retire Year Comamand Button udk
ESyd yf gu yifpif,rl nfh &uf? v? ckEpS w f u
Ykd w
kd u
G cf suaf y;vdrrhf nf/ yH(k 407)/
Contents
Microsoft Visual Basic 6.0 361 uuuGef
yHk(406)
yHk(407)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 362 uuuGef
yHk(408)
yHk(409)
yHk(409)yg Form yHkpHwGifyg0ifaom Toolbox Icon rsm;rSm udkavhvmygu
DBGrid, Label, Text Box, Data, Command ButtonwdkYyg0ifNyD;
4if;wdkY\ Properties rsm;udk jyifqifjznfhpGufNyD;aemuf Command Button wGif
vdt
k yfaomy½d*k &rfrsm; a&;om;&rnf jzpfonf/
DBGrid1 - DBGrid Properties rSm
(Name) - DBGrid1
Align - 0 - vbAlignNone
AllowAddNew - False
AllowArrows - True
AllowDelete - False
AllowUpdate - True
BorderStyle - 1 - Fixed Single
Caption - None
DataMode - 0 - Bound
DataSource - Data1
Font - MS Sans Serif, Regular, 8
Label1 - Label Properties rSm
(Name) - Label1
Alignment - 0 - Left Justify
AutoSize - False
Contents
Microsoft Visual Basic 6.0 365 uuuGef
BackStyle - 0 - Transparent
BorderStyle - 1 - Fixed Single
Caption - All Records
Font - MS Sans Serif, Bold, 8
Text1 - Text Properties rSm
(Name) - Text1
Alignment - 0 - Left Justify
BorderStyle - 1 - Fixed Single
Font - MS Sans Serif, Bold, 8
Text - Empty
Data1 - Data Properties rSm
(Name) - Data1
Align - 0 - None
BOFAction - 0 - Move First
Connect - Access
DatabaseFile - C:\Program Files\Microsoft Visual Studio\VB98\
Retired.mdb
EOFAction - 0 - Move Last
Font - MS Sans Serif, Regular, 8
RecordsetType - 1 - Dynaset
RecordsetSource - Retired
Command1 - CommandButton Properties rSm
(Name) - Command1
Caption - To Calculate Age
Font - MS Sans Serif, Regular, 8
Command2 - CommandButton Properties rSm
(Name) - Command2
Caption - To Calculate Services Year
Font - MS Sans Serif, Regular, 8
Command3 - CommandButton Properties rSm
(Name) - Command3
Caption - To Calculate Retire Year
Font - MS Sans Serif, Regular, 8
Contents
Microsoft Visual Basic 6.0 366 uuuGef
yHk(410)
Contents
Microsoft Visual Basic 6.0 369 uuuGef
yHk(411)
AutoSize - False
BackStyle - 0 - Transparent
BorderStyle - 0 - None
Caption - Using Crystal Report
Font - MS Sans Serif, Bold, 14
Label2 - Label Properties rSm
(Name) - Label2
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - 0 - Transparent
BorderStyle - 0 - None
Caption - Print Destination
Font - MS Sans Serif, Bold, 10
Label3 - Label Properties rSm
(Name) - Label3
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - 0 - Transparent
BorderStyle - 0 - None
Caption - Identification Number From
Font - MS Sans Serif, Bold, 10
Label4 - Label Properties rSm
(Name) - Label4
Alignment - 0 - Left Justify
AutoSize - False
BackStyle - 0 - Transparent
BorderStyle - 0 - None
Caption - To
Font - MS Sans Serif, Bold, 10
Report1 - Crystal Report Properties rSm
(Name) - Report1
Destination - 0 - crptToWindow
Contents
Microsoft Visual Basic 6.0 371 uuuGef
PrintFileType - 0 - crptRecord
RecordSource - 0 - crptReport
WindowState - 0 - crptNormal
Text1 - Text Properties rSm
(Name) - Text1
Alignment - 0 - Left Justify
BorderStyle - 1 - Fixed Single
Font - MS Sans Serif, Regular, 8
Text - A-00001
Text2 - Text Properties rSm
(Name) - Text2
Alignment - 0 - Left Justify
BorderStyle - 1 - Fixed Single
Font - MS Sans Serif, Regular, 8
Text - A-99999
Combo Box a½G;cs,f&eftwGuf
Private Sub Combo1_Click()
If Combo1.Text = "Printer" Then
Form4.Show
End If
End Sub
Print Report Command Button twGuf
Private Sub Command1_Click()
If Combo1.Text = "Window" Then
rpt1 = 0
Else
Combo1.Text = "Printer"
rpt1 = 1
Report1.CopiesToPrinter = num1
End If
pt1 = "{Retired.IDNo} in '" + Trim(Text1.Text) + "' to '" +
Trim(Text2.Text) + "'"
Contents
Microsoft Visual Basic 6.0 372 uuuGef
Report1.SelectionFormula = pt1
Report1.Destination = rpt1
a1 = LCase(App.Path)
If Right(App.Path, 1) <> "\" Then a1 = a1 + "\" 'Handles the root
Report1.DataFiles(0) = a1 + "Retired.mdb"
Report1.ReportFileName = a1 + "Retired.rpt"
Report1.Action = 1
End Sub
tqdyk gy½d*k &rfukd Run ygu yH(k 412)ygtwdik ;f jrifawGU&rnf/ Print Destination
nmzuf½dS Combo Box Dropdown Arrow udak ½G;cs,yf gu Window ESifh Printer [l
íjrifawGU&Ny;D rdrt d vd½k &dS mudak ½G;cs,Ef ikd yf gonf/ Identification Number From \nm
zuf Text Box wGif Record Identification Number rdrdpvdkonfh eHygwfrSp&efjzpfNyD;
To \nmzuf Text Box ürdrt d qH;k owf½u kd Ef ydS v
f o kd nfh Record Identification Number
udjk yifqifjznfph uG &f efjzpfonf/ Print Report Command Button udEk ydS yf gu Combo
Box udk Window a½G;cs,c f yhJ gu Printer jzif½h u kd Ef ydS &f ef Print Preview udk jyrnfjzpfNy;D
Printer udak ½G;cs,c f yhJ gu wdu k ½f u
kd f Printer jzifh ½du k Ef ydS rf nfjzpfygonf/
yHk(412)
Contents
Microsoft Visual Basic 6.0 373 uuuGef
yHk(413)
tcef;(11)
yHk(414)
txufygzdik u
f kd Execute File vkyrf nfqykd gu Menu Bar ½Sd File udka½G;yg/ Pull
Down Menu usvmygu 4if;xJrS Make extest017.exe... udak ½G;cs,& f rnf/ yH(k 415)/
Contents
Microsoft Visual Basic 6.0 376 uuuGef
yHk(415)
txufygzdik u
f kd Execute File vkyrf nfqykd gu Menu Bar ½Sd File udka½G;yg/ Pull
Down Menu usvmygu 4if;xJrS Make extest017.exe... udak ½G;cs,& f rnf/ yH(k 415)/
yHk(416)
Contents
Microsoft Visual Basic 6.0 377 uuuGef
yHk(417)
yHk(418)
Contents
Microsoft Visual Basic 6.0 378 uuuGef
xdt
k cgrdrt
d rnfay;vdu
k o
f nfth wdik ;f c:\Example001.exe jzpfomG ;ayrnf/ 4if;zdik u
f kd
Run vdy
k gu Computer Desktop wGi½f adS eaom My Computer Short Cut Icon udk
Double Click (or) Active jzpfaeaomtcg Enter ESdyfyg/ yHk(419)/
yHk(419)
xdt
k cg yH(k 420)wGiaf zmfjyxm;onft
h wdik ;f [C:] udk Double Click (or) Active
jzpfaeaomtcg Enter ESdyfyg/
yHk(420)
Contents
Microsoft Visual Basic 6.0 379 uuuGef
yHk(421)
yHk(422)
Contents
Microsoft Visual Basic 6.0 380 uuuGef
yHk(423)
yHk(424)
txufygzdik u f kd Application Package vkyrf nfqykd gu Menu Bar ½Sd Add-Ins
udka½G;yg/ Pull Down Menu usvmygu 4if;xJrS Package and Deployment Wiz-
ard... udka½G;cs,f&rnf/ yHk(425)/
yHk(425)
Contents
Microsoft Visual Basic 6.0 382 uuuGef
xdt
k cg Package and Deployment Wizard Dialog Box ay:vmrnf/ yHk(426)?
Package rjyKvy k cf iftqdyk g Project File udo
k rd ;f vdyk gu Yes udka½G;&efjzpfNyD;? rodrf;vdk
ygu No udak ½G;cs,&f rnf/ yH(k 426)/ Oyrm - No udak ½G;yg/
yHk(426)
Package and Deployment Wizard Dialog Box ay:vmrnf/ 4if; Dialog
Box wGif rdrd Package vkyv f o
kd nfh Visual Basic Project File \ wnfae&mudk
jyaernfjzpfNyD; Package Command Button udak ½G;cs,&f rnf/ yH(k 427)/
yHk(427)
yHk(428)
yHk(429)
Package trsK;d tpm;a½G;cs,o
f nfh Dialog Box ay:vmrnf/ Package Type udk
Standard Setup Package ae&mwGiy f ifxm;í Next udak ½G;cs,yf g/ yH(k 430)/
yHk(430)
Package udr
k rd x
d nfv
h o
kd nfv
h rf;aMumif;üxnf&h eftcGit
hf a&;&½Srd nfh Dialog Box
ay:vmrnf/ yHk(431)/
Contents
Microsoft Visual Basic 6.0 384 uuuGef
yHk(430)
yHk(431)
yHk(432)
DAO Driver rsm;udka½G;cs,f&eftajctaeayonfh Dialog Box ay:vmygu
zdik t
f m;vH;k udak ½G;cs,Nf y;D Next udk Click ESdyf&rnf/ yHk(433)/
Contents
Microsoft Visual Basic 6.0 385 uuuGef
yHk(433)
yHk(434)
yHk(435)
rdrw
d nfaqmufrnfh Application Package wGif yg0ifonfh *.dll zdkifrsm;udk Check
Box jzifh Mark vkyx
f m;onf/ ra½G;cs,v
f ykd gu Uncheck jyKvyk Ef ikd o
f nf/ tm;vH;k a½G;cs,f
xm;ojzifh Next Command Button udo k ma½G;cs,yf g/ yH(k 436)/
yHk(436)
Cab File wnfaqmuf&eftcGifhta&;ay;onfh Dialog Box wpfckay:vmrnf/
tqdyk g Dialog Box wGif Single cab File wnfaqmufygu cab File wpfzikd w f nf;om
wnfaqmufNy;D Disk Space rsm;vdrrhf nf/ Multiple cabs Option Button udak ½G;cs,f
ygu rdrwd nfaqmufvo kd nfh cab size udk 1.44 MB, 2.88 MB, 1.2 Mb, 720KB
ponfjzifah ½G;cs,w
f nfaqmufEikd af yonf/ Oyrm - 1.44 MB udak ½G;cs,yf gu jzpfay:vm
Contents
Microsoft Visual Basic 6.0 387 uuuGef
aom cab File rsm;onf 1.44 MB xufrausmaf pbJ cab File rsm;wpfzikd x f ufru
jzpfvmayrnf/ tqdyk g Dialog Box wGif Multiple cabs Option Button udak ½G;cs,yf g/
xdaYk emuf Cab size udk 1.44 MB wGix
f m;Ny;D Next Command Button udak ½G;cs,&f efjzpf
onf/ yH(k 437)/
yHk(437)
Installation Title udo k wfrw S &f ef Dialog Box xyfraH y:vmrnf/ Installation
title tm;rdrpd w
d Bf uKud o
f wfrw S yf g/ Oyrm - Result of the Students [kjyifqifjznfph u
G í
f
Next udak ½G;cs,& f rnf/ yH(k 438)/
yHk(438)
Package and Deployment Wizard - Start Menu Items Dialog Box ay:vm
rnf/ Next udka½G;cs,fyg/ yHk(439)/
Contents
Microsoft Visual Basic 6.0 388 uuuGef
yHk(439)
yHk(440)
Package and Deployment Wizard - Shared Files Dialog Box ay:vmrnf/
Shared Files rsm;udk Check jyKvy
k í
f Next udak ½G;cs,yf g/ yH(k 441)/
Contents
Microsoft Visual Basic 6.0 389 uuuGef
yHk(441)
Package and Deployment Wizard - Finished! Dialog Box ay:vmrnf/
Finish udka½G;cs,fyg/ yHk(442)/
yHk(442)
yHk(443)
Save Report Dialog Box xyfraH y:vmrnf/ Save in: List Box wGif vrfaMumif;
ajymif;vdkygu ajymif;NyD; Text File udk odr;f Edik af yonf/ yH(k 444)/
yHk(444)
yHk(445)
yHk(446)
yH(k 447)ygtwdik ;f Package and Deployment Wizard Dialog Box xyfraH y:vm
rnf/ Close Command Button udak ½G;cs,yf g/ rlvy½d*k &rfoo
Ykd mjyefa&mufomG ;rnf/
yHk(447)
yHk(447)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 393 uuuGef
yHk(448)
yHk(449)
aemufxyf Dialog Box wpfcx k yfraH y:vmrnf/ yH(k 449)/ uGeyf sLwmyHyk gaom Com-
mand Button tm;a½G;cs,fygu C:\Program Files\Project1 xJwGif Install jyK
vkyrf nfjzpfNy;D tjcm;vrf;aMumif;ajymif;vJí Install vkyv f ykd gu Change Directory
udak ½G;írdrEd pS o
f uf&mvrf;aMumif;ajymif; Install jyKvyk Ef ikd af yonf/ xdaYk Mumifh uGeyf sLwm
yHkygaom Command Button tm;a½G;cs,fyg/ yHk(450)yg Dialog Box wpfcx k yfraH y:
vmrnf/
Contents
Microsoft Visual Basic 6.0 395 uuuGef
yHk(450)
Continue Command Button udak ½G;cs,& f rnf/ y½d*k &rfrsm;tm; Install vkyNf y;D ygu
yH(k 451)ygtwdik ;f atmifjrifpmG Ny;D qH;k aMumif; Message Box ay:vmygu OK udk Click
vky&f efjzpfygonf/
yHk(451)
Contents
Microsoft Visual Basic 6.0 396 uuuGef
yHk(452)
yHk(453)
Contents
Microsoft Visual Basic 6.0 397 uuuGef
yHk(454)
yHk(455)
xdt
k cg Input Box aemufwpfzefjyefay:vmygu Password trSeu f kd jznfph u
G í
f
Enter (odr
Yk [kw)f OK Command Button udak ½G;cs,&f rnf/ yH(k 456)/
yHk(456)
yHk(457)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 400 uuuGef
yHk(458)
yHk(459)
Contents
Microsoft Visual Basic 6.0 402 uuuGef
yHk(460)
yHk(461)
yHk(462)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 405 uuuGef
tcef;(12)
Microsoft Internet Explore zdkifudkqJG,ltoHk;csjcif;
yxrOD;pGm Microsoft Internet Explore wGif Run í&Edkifap&ef HTML (Hyper
Text Mark-Up Language) jzifh y½dk*&rfrsm;udka&;om;&rnf/ Oyrm - c:\html_notes
vrf;aMumif;xJwiG f rdrt
d vd½k o
dS nfh HTML zdik rf sm;a&;om;xm;&rnf/
Index.htm zdik tf wGuf
<html>
<head>
<title> My Home Page (Index File) </Title></head>
<frameset rows="60,*">
<frame name="banner" scrolling="no" noresize target ="contents"
src="header.htm">
<frameset cols="185,*">
<frame name="contents" target="main" src="content.htm">
<frame name="main" src="main.htm" target="contents">
</frameset>
</frameset>
</html>
header.htm zdi k tf wGuf
<html>
<head><title>Web Page Header</Title>
<base target="contents"></head>
<body>
<p align="center"><b><big><big>
<marquee align="middle" behavior="alternate" direction="right"> Welcome
to My Home Page</marquee>
</big></big></b></p>
</body>
</html>
content.htm zdi k t
f wGuf
<html>
<head><title> Content </Title>
<base target="main"></head>
Contents
Microsoft Visual Basic 6.0 406 uuuGef
<body>
<p><b><font color="#0000ff">HTML Lessons</font></b></p>
<p><b>
1. <a href="Heading.htm"> Heading</a><br>
2. <a href="HRuler2.htm"> Horizontal Ruler</a><br>
3. <a href="Format.htm"> Text Format</a><br>
4. <a href="Font Size.html"> Font Size</a><br>
5. <a href="Font Color.html"> Font Color</a><br>
6. <a href="Font Face.html"> Font Face</a><br>
7. <a href="bgsound.htm"> BGSound </a><br>
8. <a href="BGColorCode.htm"> BGColorCode</a><br>
9. <a href="Font attrs.html"> Font Attr. </a><br>
10. <a href="FontType.html"> Font Type</a><br>
11. <a href="Format.htm"> Text Format</a><br>
12. <a href="Paragraph.htm"> Paragraph </a><br>
13. <a href="Form-Table1.htm"> Form Table </a><br>
14. <a href="Images.htm"> Images </a><br>
15. <a href="ImageTable.htm">Image Table </a><br>
16. <a href="Table1.htm"> Table1 </a><br>
17. <a href="Video.htm"> Video </a><br>
18. <a href="VBScript.htm"> VBScript </a><br>
19. <a href="Javascript.htm"> Javascript </a><br>
20. <a href="HTML_Option.htm">HTML Option </a><br><br>
21. <a href="Thanks.htm">Thank You </a></b></p>
** <a href="Exercise001.htm"> Excercise001 </a><br>
** <a href="Java_TextTyper.htm"> Java_TextTyper </a><br>
<b> Links to Other Site (Applet Effects) </b> <Br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\water3.html"> Water </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\water3.html"> Water2 </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\water3.html"> Water3 </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Bump.html">Bump </a><br>
Contents
Microsoft Visual Basic 6.0 407 uuuGef
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Bump2.html"> Bump2 </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Bump3.html"> Bump3 </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Lens.html"> Lens </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Lens2.html"> Lens2 </a><br>
* <a href="C:\My Documents\JavaScripts 99\javaapplets\imageeffects\
durius\Lens3.html"> Lens3 </a><br>
</body>
</html>
main.htm zdik t
f wGuf
<html>
<head><title>Main Area in Frame Page</Title>
<base target="contents"></head>
<body>
<p></p> <p></p> <p></p>
<p align="center"><font color ="0000ff"><b><big>A Practical Application
</b></big></p>
<p align="center"><big><b><font color ="ff0000">of</font></b></big>
</p>
<p align="center"><big><b><font color ="0000ff"> HTML Basic
Lessons</font></b></big></p>
<p></p>
</body>
</html>
heading.htm zdi k t
f wGuf
<html>
<head><title>Heading Text Styles
</Title></head>
<body>
<H1>Heading 1 </H1>
<H2>Heading 2 </H2>
<H3>Heading 3 </H3>
Contents
Microsoft Visual Basic 6.0 408 uuuGef
<H4>Heading 4 </H4>
<H5>Heading 5 </H5>
<H6>Heading 6 </H6>
<H7>Normal Size </H7>
</body>
</html>
hruler2.htm zdi k t
f wGuf
<html>
<head><title>Horizontal Ruler</Title></head>
<body>
<hr color="blue">
<hr color="red" width ="75%">
<hr color=blue size=10 width=100>
<hr color=green size=25 width=200>
</body>
</html>
format.htm zdik tf wGuf
<html>
<head><title>Text Formatting</Title></head>
<body>
<Center>
<!-- Remark -->
<B>Bold Text Bold Text Bold Text</b><br>
<U>Underlined Text Underlined Text Underlined Text</u><br>
<I>Italic Text Italic Text Italic Text</i><br>
</Center>
</body>
</html>
font size.html zdkiftwGuf
<html>
<head><title>Font Size</Title></head>
<body>
<Font Size=1> Font Size =1 </font><br>
<Font Size=2> Font Size =2 </font><br>
<Font Size=3> Font Size =3 </font><br>
Contents
Microsoft Visual Basic 6.0 409 uuuGef
<Font Size=4> Font Size =4 </font><br>
<Font Size=5> Font Size =5 </font><br>
<Font Size=6> Font Size =6 </font><br>
<Font Size=7> Font Size =7 </font><br>
</body>
</html>
font color.html zdkiftwGuf
<html>
<head><title>Font Color</Title></head>
<body><b><h1>
<Font Color=red> Font Color=red </font><br>
<Font Color=green> Font Color=green </font><br>
<Font Color=blue> Font Color=blue </font><br>
<Font Color=yellow> Font Color=yellow </font><br>
<Font Color=cyan> Font Color=cyan </font><br>
<Font Color=silver> Font Color=silver </font><br>
<Font Color=lime> Font Color=lime </font></b>
<p><b><font face="Arial" size="3" color="#0000FF">This is arial font.
</font><br></b></p>
</h1>
</body>
</html>
font face.html zdkiftwGuf
<html>
<head><title>Font Face</Title></head>
<body><b>
<Font size=7>
<Font face=times>face=times</font><br>
<Font face=arial>face=arial</font><br>
<Font face=times new roman>face=times new roman</font><br>
<Font face=arial black>face=arial black</font><br>
<Font face="-win---kalaw"> pmvkH;=0if;uavm</font><br>
<Font face="-win---researcher"> pmvkH;=0if;uavm</font><br>
<Font face=Haettenschweiler>face=Haettenschweiler</font><br>
</Font>
Contents
Microsoft Visual Basic 6.0 410 uuuGef
</b>
</body>
</html>
bgsound.htm zdi k t
f wGuf
<html>
<head><title>Background Sond is playing (Another Directory)</Title>
</head>
<body>
<bgsound src="c:\windows\wzz.mp3" loop="-1">
<h1>Background Sound is playing ... </h1>
</body>
</html>
BGColorCode.htm zdi k t
f wGuf
<html>
<head><title>Background Color Code</Title></head>
<body BGCOLOR="#00ff00">
<h1>BGCOLOR is Green ... (Code)</h1>
</body>
</html>
font attrs.html zdkiftwGuf
<html>
<head><title>Other Font Attributes</Title></head>
<body>
This is normal text on body<br>
<strong>Strong Text</strong><br>
<strong><strong>Strong and strong Text</strong></strong><br>
<strike>Strike through on Text</strike><br>
<big>Big Text</big><br>
<big><big>Big and big Text</big></big><br>
<small>Small Text</small><br>
<small><small>Small and small Text</small></small><br>
<h3>Super Script and Subscript<br>
H<sub>2</sub>O<br>
X<sup>2</sup>+y-10</h3><br>
<tt>This is a Monotype Text Style. This is a Monotype Text Style, This is a
Contents
Microsoft Visual Basic 6.0 411 uuuGef
Monotype Text Style, This is a Monotype Text Style. </tt>
</body>
</html>
fontType.html zdi k t
f wGuf
<html>
<head><title>Font Type</Title></head>
<body><pre>
1. Pre-formated
2. Pre-formated
Pre-formated Pre-formated</pre>
<acronym>Acronym Acronym Acronym </acronym><br>
<address>Address Address Address </address><br>
<blockquote>BlockQuote BlockQuote BlockQuote </blockquote><br>
<cite>Cite Cite Cite </cite><br>
<del>Del Del Del </del><br>
<dfn>Defination Defination Defination </dfn><br>
<em>Em Em Em </em><br>
<ins>Insert Insert Insert </ins><br>
<textarea cols=50 rows=10 name="area1"> This is text area. This is text
area. This is text area. This is text area. This is text area. This is text area.
This is text area. This is text area. This is text area. This is text area. This is
text area. This is text area. This is text area. This is text area. This is text
area. This is text area. This is text area. This is text area. This is text area.
This is text area. This is text area. This is text area.This is text area. This is
text area. This is text area. This is text area. This is text area. This is text
area. This is text area. This is text area. This is text area. This is text area.
This is text area. This is text area. This is text area. This is text area. This is
text area. This is text area. This is text area. This is text area. This is text
area. This is text area. This is text area. This is text area.
</textarea>
</body>
</html>
format.htm zdi k t
f wGuf
<html>
<head><title>Text Formatting</Title></head>
Contents
Microsoft Visual Basic 6.0 412 uuuGef
<body>
<Center>
<!-- Remark -->
<B>Bold Text Bold Text Bold Text</b><br>
<U>Underlined Text Underlined Text Underlined Text</u><br>
<I>Italic Text Italic Text Italic Text</i><br>
</Center>
</body>
</html>
Paragraph.htm zdi k t
f wGuf
<html>
<head><title>Sparating Paragraphs</Title></head>
<body><p>
Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1
Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1</p>
<p align="center"> Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1
Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Paragraph1 Para-
graph1 Paragraph1 Paragraph1 Paragraph1
</p>
</body>
</html>
Contents
Microsoft Visual Basic 6.0 413 uuuGef
Form_table1.htm zdi k t
f wGuf
<HTML>
<HEAD> <TITLE>JavaScript & Forms</TITLE> </HEAD>
<BODY>
<Center>
<SCRIPT LANGUAGE="JavaScript">
<!-- begining of script
function CalcTotals() {
document.Form1.SubTotal1.value = q1_Float*p1_Float;
document.Form1.SubTotal2.value = q2_Float*p2_Float;
document.Form1.SubTotal3.value = q3_Float*p3_Float;
document.Form1.Total.value = (q1_Float*p1_Float)+(q2_Float*p2_Float)+
(q3_Float*p3_Float);}
<FORM NAME="Form1">
<TABLE WIDTH="600">
<TR>
<TH VALIGN="TOP" ALIGN="CENTER">No.</TH>
<TH VALIGN="TOP" ALIGN="CENTER">Rank</TH>
<TH VALIGN="TOP" ALIGN="CENTER">Pay </TH>
<TH VALIGN="TOP" ALIGN="CENTER">Amount of Soldier</TH>
<TH VALIGN="TOP" ALIGN="CENTER">Total Pay</TH>
Contents
Microsoft Visual Basic 6.0 414 uuuGef
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER">1.</TD>
<TD VALIGN="TOP" ALIGN="CENTER">Sgt</TD>
<TD ALIGN="CENTER">Ks 100.75<INPUT TYPE="HIDDEN"
NAME="Price1" VALUE="100.75"></TD>
<TD ALIGN="CENTER"><INPUT TYPE="TEXT"
NAME="Quantity1"></TD>
<TD ALIGN="RIGHT"><INPUT TYPE="TEXT" NAME="SubTotal1">
</TD>
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER">2.</TD>
<TD VALIGN="TOP" ALIGN="CENTER">Cpl.</TD>
<TD ALIGN="CENTER">Ks 95.25
<INPUT TYPE="HIDDEN" NAME="Price2" VALUE="95.25"> </TD>
<TD ALIGN="CENTER"><INPUT TYPE="TEXT"
NAME="Quantity2"></TD>
<TD ALIGN="RIGHT"><INPUT TYPE="TEXT" NAME="SubTotal2">
</TD>
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER">3.</TD>
<TD VALIGN="TOP" ALIGN="CENTER">Rfm.</TD>
<TD ALIGN="CENTER">Ks 80.50
<INPUT TYPE="HIDDEN" NAME="Price3" VALUE="80.50"></TD>
<TD ALIGN="CENTER"><INPUT TYPE="TEXT"
NAME="Quantity3"></TD>
<TD ALIGN="RIGHT"><INPUT TYPE="TEXT" NAME="SubTotal3">
</TD>
</TR>
Contents
Microsoft Visual Basic 6.0 415 uuuGef
<TR>
<TD VALIGN="TOP" ALIGN="CENTER" COLSPAN="5"><HR></TD>
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER"></TD>
<TD VALIGN="TOP" ALIGN="CENTER"></TD>
<TD ALIGN="CENTER"></TD>
<TD ALIGN="RIGHT">Total Kyats</TD>
<TD ALIGN="RIGHT"><INPUT TYPE="TEXT" NAME="Total"></TD>
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER"></TD>
<TD VALIGN="TOP" ALIGN="CENTER"></TD>
<TD ALIGN="CENTER"></TD>
<TD ALIGN="CENTER"></TD>
<TD ALIGN="RIGHT">
<INPUT TYPE="BUTTON" NAME="Button1" VALUE="Recalculate"
ONCLICK="CalcTotals()"></TD>
</TR>
</TABLE>
</FORM>
</Center>
</BODY>
</HTML>
Images.htm zdkiftwGuf
<html>
<head><title>Using Miage Tags</Title></head>
<body>
<center>
<img src="ace.gif" alt="ace.gif">
<img src="./Images/111.jpg" width=200 height=200 border=10 hspace=10
vspace=10 Alt="This is 111.jpg" align="center">
Contents
Microsoft Visual Basic 6.0 416 uuuGef
<img src="./Images/222.jpg" Height=300 width=175 alt="222.gif"><br>
</center>
</body>
</html>
ImageTable.htm zdik t
f wGuf
<html>
<head><title> Table and Images </Title></head>
<body>
<Center>
<Table Border = "1" Width="70">
<tr>
<td> <Img src="./Images/pict01.gif" width=120 height=100 alt="Picture1">
</td>
<td> <Img src="./Images/pict02.gif" width=120 height=100 alt="Picture2">
</td>
<td> <Img src="./Images/pict03.gif" width=120 height=100 alt="Picture3">
</td>
</tr>
<tr>
<td> <Img src="./Images/pict04.gif" width=120 height=100 alt="Picture4">
</td>
<td> <Img src="./Images/pict05.gif" width=120 height=100 alt="Picture5">
</td>
<td> <Img src="./Images/pict06.gif" width=120 height=100 alt="Picture6">
</td></tr>
<tr>
<td> <Img src="./Images/pict07.gif" width=120 height=100 alt="Picture7">
</td>
<td> <Img src="./Images/pict08.gif" width=120 height=100 alt="Picture8">
</td>
<td> <Img src="./Images/pict09.gif" width=120 height=100 alt="Picture9">
</td>
</tr>
</table>
<br>
Contents
Microsoft Visual Basic 6.0 417 uuuGef
<b> <Font color=red size=6 face="NuptialScript"> Image Table </Font> </
b>
</Center>
</body>
</html>
Table1.htm zdkiftwGuf
<html>
<head><title> Table Cells </Title></head>
<body>
<Table Border = "20" Width="500" cellpadding="5" cellspacing="10"
bordercolor="purple" align="center" bgcolor="silver">
<tr>
<td align="center">Cell1</td>
<td align="center">Cell2</td>
</tr>
<Table Border = "20" Width="300" cellpadding="3" cellspacing="10"
bordercolor="red" align="center" bgcolor="silver">
<tr>
<td align="right">Cell3</td>
<td>Cell4</td>
</tr>
<Table Border = "20" Width="400" cellpadding="3" cellspacing="10"
bordercolor="blue" align="center" bgcolor="silver">
<tr>
<td>Cell5</td>
<td>Cell6</td>
</tr>
<Table Border = "20" Width="300" cellpadding="3" cellspacing="10"
bordercolor="magenta" align="center" bgcolor="silver">
<tr>
<td>Cell7</td>
<td>Cell8</td>
</tr>
</table>
</body>
Contents
Microsoft Visual Basic 6.0 418 uuuGef
</html>
Video.htm zdkiftwGuf
<html>
<head><title>Video is playing (Another Directory)</Title></head>
<body>
<center>
<img dynsrc="c:\my documents\Music12.dat">
<h1>Video is playing ... </h1>
</center>
</html>
VBScript.htm zdkiftwGuf
<HTML>
<HEAD> <TITLE>VBScript & Form Example</TITLE> </HEAD>
<BODY BGCOLOR="#FFFFFF">
<SCRIPT LANGUAGE="VBScript">
<!-- begining of script
Sub add_2_num()
a_str = document.Form1.Text1.value
b_str = document.Form1.Text2.value
a_int = cint(a_str)
b_int = cint(b_str)
c=0
c = a_int+b_int
MsgBox "The answer is: " & c
End Sub
<FORM NAME="Form1">
</FORM>
</BODY>
</HTML>
Javascript.htm zdkiftwGuf
<HTML>
<HEAD> <TITLE>JavaScript & Forms</TITLE> </HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- begining of script
function add_2_num() {
c = a_int + b_int;
alert("The answer is: " +c);}
<FORM NAME="Form1">
<CENTER>
<Font color=red>
<H1>HTML_Option</H1>
</Font>
<H2>This is Heading 2 Style</H2>
<br>
<SELECT NAME=Selection1>
<OPTION>
<a href="FontFace.html"> Font Face </a>
</OPTION>
<OPTION>
<a href="FontSize.html"> Font Size </a>
</OPTION>
<OPTION>
<a href="FontColor.html"> Font Color </a>
</OPTION>
</SELECT>
<br><br>
<TEXTAREA NAME=mytext ROWS=10 COLS=50>
This word is in the text area.
</TEXTAREA>
</CENTER>
</BODY>
</HTML>
Contents
Microsoft Visual Basic 6.0 421 uuuGef
Thanks.htm zdkiftwGuf
<html>
<head><title>Thanks</Title></head>
<body bgcolor="#000000">
<center>
<a href="main.htm"><Img Src="./Images/Home.gif" width="220"
height="197"></a><br>
<font color =red>
<h1>Thank your for Visit to My Home Page</h1></font></center>
</body>
</html>
Exercise001.htm zdkiftwGuf
<HTML>
<HEAD> <TITLE>JavaScript & Forms (Fahrenheit to Centigrade)</TITLE>
</HEAD>
<BODY>
<center>
<SCRIPT LANGUAGE="JavaScript">
<!-- begining of script
function CTs() {
var fah=parseFloat(document.Form1.P1.value);
var cen = 0;
document.Form1.cen.value=5/9*(fah-32);}
<FORM NAME="Form1">
</FORM>
</center>
</BODY>
</HTML>
Java_TextTyper.htm zdkiftwGuf
<HTML LANG="en">
<HEAD><title>TextTyper v2.5</title>
<META http-equiv="Content-Type" content="text/html; harset=iso-8859-1">
<LINK REL="email"
HREF="mailto:[email protected]">
<style type="text/css">
<!--
B { font-weight: bold }
#ttl0 { position: absolute }
.ttl1 { font: 8pt Verdana, Arial, Helvetica, serif }
// -->
</style>
<script type="text/javascript" language="javascript">
<!--
/*
*/
var overMe=0;
function init() {
txtTyper(dispStr[0], 0, 'ttl0', 'ttl1', '#339933', '#99FF33', 50, 0);
}
// -->
</script>
</HEAD>
</HTML>
Water3.html zdkiftwGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Microsoft FrontPage 4.0">
<TITLE>The Water-applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#407890" VLINK="#50a088">
<BLOCKQUOTE>
<P align="center"><B><FONT SIZE="+1"><IMG SRC="Images/
HeadlineWater.jpg" WIDTH="79" HEIGHT="42" ALIGN="BOTTOM"
BORDER="0" NATURALSIZEFLAG="3"></FONT><font color
="#0000FF" SIZE="+1"><span style="background-color:
#00FF00">Activate
your mouse on the center area.</span></font></B></P>
</BLOCKQUOTE>
<P><CENTER><B><FONT SIZE="+1">
<APPLET WIDTH="190" HEIGHT="190" ALIGN="BOTTOM"
CODE="WaterApp.class" CODEBASE="./">
<PARAM NAME="dim" VALUE="6">
<PARAM NAME="dotsize" VALUE="6">
<PARAM NAME="logoheight" VALUE="200">
<PARAM NAME="image" VALUE="Images/fxlogo.gif">
<PARAM NAME="mouse" VALUE="1">
<PARAM NAME="noise" VALUE="0">
<PARAM NAME="col1" VALUE="ffff34">
<PARAM NAME="col2" VALUE="ff3434">
Contents
Microsoft Visual Basic 6.0 426 uuuGef
<PARAM NAME="col3" VALUE="ffffff">
<PARAM NAME="col4" VALUE="3434ff">
<PARAM NAME="col5" VALUE="34ffff">
<PARAM NAME="url" VALUE="http://www.xoom.com/">
<PARAM NAME="reg" VALUE="41774512">
</APPLET></FONT></B></CENTER></P>
</BODY>
</HTML>
Bump.html zdi
k t
f wGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Bump Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineBump.jpg"
WIDTH="87" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
</BLOCKQUOTE>
<P><CENTER>
<APPLET WIDTH="256" HEIGHT="256" ALIGN="BOTTOM"
CODE="BumpApp.class" CODEBASE="./">
<PARAM NAME="image" VALUE="Images/rot.jpg">
<PARAM NAME="lightsizex" VALUE="120">
Contents
Microsoft Visual Basic 6.0 427 uuuGef
<PARAM NAME="lightsizey" VALUE="120">
<PARAM NAME="ambiencer" VALUE="120">
<PARAM NAME="ambienceg" VALUE="120">
<PARAM NAME="ambienceb" VALUE="120">
<PARAM NAME="bumpheight" VALUE="255">
<PARAM NAME="light" VALUE="255">
<PARAM NAME="reg" VALUE="60563282">
</APPLET></CENTER></P>
</BODY>
</HTML>
Bump2.html zdi
k t
f wGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Bump Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineBump.jpg"
WIDTH="87" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
</BLOCKQUOTE>
<P><CENTER>
<APPLET WIDTH="230" HEIGHT="230" ALIGN="BOTTOM"
CODE="BumpApp.class" CODEBASE="./">
Contents
Microsoft Visual Basic 6.0 428 uuuGef
<PARAM NAME="image" VALUE="Images/inyourface.jpg">
<PARAM NAME="lightsizex" VALUE="85">
<PARAM NAME="lightsizey" VALUE="85">
<PARAM NAME="ambiencer" VALUE="80">
<PARAM NAME="ambienceg" VALUE="120">
<PARAM NAME="ambienceb" VALUE="140">
<PARAM NAME="bumpheight" VALUE="320">
<PARAM NAME="light" VALUE="720">
<PARAM NAME="reg" VALUE="60563282">
</APPLET></CENTER></P>
</BODY>
</HTML>
Bump3.html zdi
k t
f wGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Bump Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineBump.jpg"
WIDTH="87" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
</BLOCKQUOTE>
Contents
Microsoft Visual Basic 6.0 429 uuuGef
<P><CENTER>
<APPLET WIDTH="300" HEIGHT="300" ALIGN="BOTTOM"
CODE="BumpApp.class" CODEBASE="./">
<PARAM NAME="image" VALUE="Images/bump.jpg">
<PARAM NAME="lightsizex" VALUE="175">
<PARAM NAME="lightsizey" VALUE="175">
<PARAM NAME="bumpheight" VALUE="370">
<PARAM NAME="light" VALUE="370">
<PARAM NAME="ambiencer" VALUE="140">
<PARAM NAME="ambienceg" VALUE="120">
<PARAM NAME="ambienceb" VALUE="100">
<PARAM NAME="reg" VALUE="60563282">
</APPLET></CENTER></P>
</BODY>
</HTML>
Lens.html zdkiftwGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Lens Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineLens.jpg"
WIDTH="74" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
Contents
Microsoft Visual Basic 6.0 430 uuuGef
</BLOCKQUOTE>
<P><CENTER>
<APPLET WIDTH="300" HEIGHT="300" ALIGN="BOTTOM"
CODE="LensApp.class" CODEBASE="./">
<PARAM NAME="image" VALUE="Images/bump.jpg">
<PARAM NAME="depth" VALUE="3048">
<PARAM NAME="lenssizex" VALUE="400">
<PARAM NAME="lenssizey" VALUE="400">
<PARAM NAME="delay" VALUE="10">
<PARAM NAME="reg" VALUE="49605356">
</APPLET></CENTER></P>
</BODY>
</HTML>
Lens2.html zdkiftwGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Lens Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineLens.jpg"
WIDTH="74" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
</BLOCKQUOTE>
Contents
Microsoft Visual Basic 6.0 431 uuuGef
<P><CENTER>
<APPLET WIDTH="300" HEIGHT="300" ALIGN="BOTTOM"
CODE="LensApp.class" CODEBASE="./">
<PARAM NAME="image" VALUE="Images/bump.jpg">
<PARAM NAME="depth" VALUE="-5000">
<PARAM NAME="lenssizex" VALUE="400">
<PARAM NAME="lenssizey" VALUE="400">
<PARAM NAME="delay" VALUE="1030">
<PARAM NAME="url" VALUE="http://www.kuk.com/">
<PARAM NAME="reg" VALUE="49605356">
</APPLET></CENTER></P>
</BODY>
</HTML>
Lens3.html zdkiftwGuf
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>The Lens Applet!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#6ba2bc" VLINK="#58a890"
ALINK="#50b090">
<BLOCKQUOTE>
<P><B><FONT SIZE="+2"><IMG SRC="Images/HeadlineLens.jpg"
WIDTH="74" HEIGHT="42" ALIGN="BOTTOM" BORDER="0"
NATURALSIZEFLAG="3"></FONT></B></P>
</BLOCKQUOTE>
Contents
Microsoft Visual Basic 6.0 432 uuuGef
<P><CENTER>
<APPLET WIDTH="230" HEIGHT="230" ALIGN="BOTTOM"
CODE="LensApp.class" CODEBASE="./">
<PARAM NAME="image" VALUE="Images/inyourface.jpg">
<PARAM NAME="depth" VALUE="6048">
<PARAM NAME="lenssizex" VALUE="150">
<PARAM NAME="lenssizey" VALUE="150">
<PARAM NAME="delay" VALUE="10">
<PARAM NAME="reg" VALUE="49605356">
</APPLET></CENTER></P>
</BODY>
</HTML>
yHk(463)
yHk(463)yg Form zdkifwGif Timer, Label, Progress Bar wdjYk zifh wnfaqmufxm;Ny;D
vdt
k yfaom Properties rsm;udjk yifqifí y½d*k &rfrsm;udak &;om;&ayrnf/
Timer1 - Timer Properties rSm
(Name) - Timer1
Enabled - True
Contents
Microsoft Visual Basic 6.0 433 uuuGef
Index - Empty
Interval - 5000
Left - 3480
Tag - Empty
Top - 0
Label1 - Label Properties rSm
(Name) - Label1
Alignment - 2 - Center
AutoSize - False
BackStyle - 1 - Opaque
BorderStyle - 1 - Fixed Single
Caption - uGefysLwmXme (uGefysLwmXme)
Font - -Win---Taungyi, Bold, 36
ProgressBar1 - ProgressBar Properties rSm
(Name) - ProgressBar1
Align - 0 - vbAlignNone
Max - 1000
Min - 0
Font - MS Sans Serif, Regular, 8
Timer1 Timer() twGuf
Private Sub Timer1_Timer()
Private Sub Timer1_Timer()
Dim n1 As Integer
For n1 = 1 To 1000
Form1.Caption = "Processing Step " & Trim$(CStr(n1)) & " of 1000"
ProgressBar1 = n1
Next n1
Call Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE
c:\html_notes\index.htm", 1)
End
End Sub
Contents
Microsoft Visual Basic 6.0 434 uuuGef
yHk(464)
acwåcP(Oyrm - 5 puúecYf efMY umjrifyh gu yH(k 465)ygtwdik ;f y½d*k &rf Run rnf
jzpfonf/ Time Interval tm; 5000 ay;xm;aomaMumifjh zpfonf/
yHk(465)
yHk(466)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 436 uuuGef
tcef;(13)
yHk(467)
tcef;(14)
taxGaxG
yHk(468)
yHk(469)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 442 uuuGef
yHk(470)
yHk(471)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 446 uuuGef
yHk(472)
yHk(473)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 450 uuuGef
yHk(474)
yHk(475)
---------------0-0-0---------------
Contents
Microsoft Visual Basic 6.0 454 uuuGef
yHk(476)
yHk(477)
---------------0-0-0---------------