Visual Basics Notes
Visual Basics Notes
fomPRORERIESExpli tompaopetfes
Afoun Ps actually a eentet aud has îto uon lou can Aeate keme wsetul atpliaton
repetes ,events nd methads fom haue hPtha congle ton but' mos of the
thei
opues that dutenine aupeet otbnd coles
applitatia uate rejet
l caeake muitple
imveue may
Son
ppebrance soh as poibon 6ise hwe
Cnd the Vmpsuthan do
caton : The tezhat appears on the titu bas
o the ton
hwe a
ethes. o
to calate ol
duplay
Nome? t'&ets te mae a tom om Stantup.
5 fonte Sat font name , ste
BoAdnsty'e : t deleanines the style ok the apoceon in the denguing poess.
t fem'b bedes and appaunte iom The maân Hing usthg hulple
G) Moyeabl: You an &t moveale P d s
totwe to more yous appïattoh d pmepey lme
mag as 2h Aespene to sers aettons Todo
(6) Rtue: Edtemins a gAbphles
tha arpeas on 4oums kackgiurd. s iual batie previde tom mehad
eveuto and commauds to ab.
icon;lt desoses thetah
the îcorbagaplkics inage
nhen the use to wek and e mutiple tams en
diaplay on
minimize the to ih in uethee ouD Wse'heo
Enehle:"You set enablad repeht to
tue to enable o a tom and to nethod hoich doad Jhe
false to diseble nto mee
iom leNeppoieet Name prepeaty Value
!. Selee a 4om Nme Cmdhlolel
eptson annd seledt Shandasd EXE Ron ard Command
Baak
Ok. CaptYon
. Neuo add ansthe tet Ncme txtL
fen optHon. Tet
3. soet Pom 1 by icking on it
Daauo eommand buton o 7om lo Alou ZSng code
Command show) fe i k '
Pom! degn evont
Command outon (mdshs) F
(Pacieet L- founl(ode)
S. Set 2t trepuRes
popHes as Paivte s b omdshooliok ()
Name Value. fosm 2o&hs
Helo,its me 4 axgt
ConmandL Alame Cndshauo. form 2 ttTezt=
Hello End sub
Capton
Name fomL fom 2 Cemmcndbuton
I. Nouw WAing coda te uent
caption fom Hello (cmd hede) No'lic
Paoioet! -foln2 (coda)
n t
6- Noo seleet fom 2
8. Daauo a e n mand button
Be en
dlicking
nda foxt
PActo ub md hicdeclik ()
foum 2.hde
wnload foam2
fon 2 foan 2 dagn End oub
TeZt box >Comnand button
(cmdhAA)
ta- Kun Ahe apptration We get thu totlemingcuutput Br Whitng code t cmdcaate butHen to
elick
Psjeetl fomL(oda)
fem2
|Hlo.itsmeyasg] Baekl Paevate dub emdaecte click()
fHeto Din fom 2 As Nos fomL
+i00
ferm 2 Top - fo4m2Top +I00
toam2 -fosm2 "lat
Mauaglng fosms at auntmeO8) ithezanple fom2shao
he can ate t0mo ond conths at suntme,
e
End Swb
but thy mustl bL duind at degn
ke
When noè. eate a meo t6m at 4 Run the upplitatfen 5hen oeks
Cn deso cacRvg
a neodas , thhee ne Can. use n foumt
form Prn a Dn Vsteterneut bPnsteentfate
aneth foum
Ed
()
Preieet !. form(ed)
Paivate sub Commun click ()
Foum2
Fnd Sb
S. Nouo wshen e kun the appicatien le oid s2 By Runming applicason hshen ne cick
o wwLaad buton, e can sa that
huan oe cick en oad bu tton tAe cppliah'en s tesuinated
fPoum
foum 2 Lool înn the maln memELY
nd. diop operaten fnvelues
cjaet" The
9)tunload:The nlac mcthed kemoves a tom ebject nd at e
taaget t i
can bee Cn y
Aescuses eoeupfad (tnol, nd. etcergctobeel can be
tom the memey nd the fom s
etneu applicctfon. Eveut Dåag aud duep
Excunpee Tie teo evets mveed e iep
epen wpejcet and diauo a tomndd aagDaep ih oeeus when a eontot Ps
byHon ob{eet, and Daagove
chetpecd' orto the
[Domo
oVes the obfct"
set the pepeties Th tuD0 ipees învetuod ae
Paepeaty
Ncme tom
caption Dermo Automate ot mawi daaglng niil be
ption unlod Wsd,ad DAag lc¡n , wi
hat fcn s spkayed hshenth
Cent ho s
(6)
EAauple O Desg a tem as fomi.aud Da
a lbel a s
|foarm
fom
Latel! a tot box Hello qaug
>Tett bg Hello qacqe
)et entaot pepeities as: Deactivate and Acvate eveut 8X)
Contnet Aopettes eting
labelt Cuptfon Empty Afeum Aeeieves an Actate event
Ttt Test Empty Nhen t becomes he aetve ton
Alem ts the aetve tem nn cn
Paamode aptaon nhen he toeus fn the
Witng thu code in the labl's dhagdep applaton s on the Ven ibselt
event po ceduL .at
e (meu kely )on eld
a mtan thu the
|Paefeet- Poen (coca) the kom This
fot itselt has the that
Palate sub labelt_Duagdep (souuce
As centael, As 9ng le, a entel an the tomhas toeus.
The tte bas cf- the' aettye tom tpesis
labell- capfon seLALe "text ghaghe.
End sub
Ponm2 Srao
Shouw The tom load ovaut coeNAS (G 4Aes) Whe
.I6 fhe
the Yom doads into momsu
Vale
foum toad eueut .we neald typiccaly
contAo
tabel Eapfon Pem2. peajo iialigaton -bype tashs
CommanelL capti on shoo
The load eveut pADcedue lies MDI VS SD
he 46m Ps establishad viadlall
and Ubehere the data onn oeens ot MDI SDI