You are on page 1of 8

Visua) Bastc-tUNIT1.

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

Ezanple: Design a fom 0s


Fuate a Alewfom.
Commard
Caue anwtorn lt
(Cmd aQdte) Shaing and loing tems
() Show Yow Qan use Shau' mehod to
(onthot
CenmumdL Name otng,
Ondcapdtoe the shH method hings
Cuate a Nowfom
(aption the
i9ads st and tten dipys
Load and Uoload frn fms 8)wfheawn
Sgnta femNoume
is. sheu [mod]
The sheu muthed is Apitally wsedto tanh Thu load mehod oads a tom Pn ha memouy
kIfh all PEs epestias ardalablas , The
Conthel toum to etes
(pac mutsd as net display the tom
Suppose lam în foun and Ioant to display the scaen, t ust loads he tom h he
fem2. the doae the folloufng &latemen pasfeet and aw
a toxt bOx
fom2- shauo. a command button and
fom
Hidu? y0e can wse Hie' method to tlde ’ Command
the foun Foum Fem 2 ood
a tom . Thls mthsd Aoes out
buton
tOm Vhe 6aen (makas?A nviTbl).
2 htilfng tode to command but
fomNne "tiole a setng pestiks Pn paepenties ¥ndew as
Name Nalu
When a
and use hs pepties în code. Tt Name
Capfon
fom2
tem2
Exampl: Yol an call ay tunction în hom Cemmand1
QUeut handl Com mand Name
nloadc thy Capton Ioad.
and con &heo mett
be dlisplayed luingshoo Cem maud buuton to cliekevent

The nlbwPr Code can be wad PAeetl.foemi (odu)


Alvate lb,temmandl-ick()

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

hen e Ln he prejeet and eute some


(4) than the
tot n the teteox. the dag
rd Yatoin the
-tort Boz to t e label te ts
le se that t hthe
label .we dabel.
tet Bon to
cepi ed tom the
The Adive avout tuanen elths buy aetion e Tke CUethes tom yome
hucugh program code
Thu wt con'ote hetoam tom tem anethes
toum en the opplation lay udeng ut
bne mwhod muniend hee
( khfPng code 4 aheus button has
By decking n the tom by mase.
me click aut aud tos Actiuating cld
daacuatfvg tome.
tthe |aejeet I fomi (oda)
aivate &ub command. click
contels.în the frgram fom " hso
Ple. sub fom_ Advate () End sub
totLo SetfoUs Rivcd ub fom Actiuate ()
End sub. fom2.Ade.
shin Ptt lous îts
Deeethcte eent aes when End Sub
0cRve <tatus to uethe Pn the Paiate sub fomdeaetivte)
fom 2" i t s shaw:
&ame appliation. End sub.
Ez: Cuakk a tom tom as- foun .

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

Au the douments can Thoe neds to bespeial


have,
awe, beLn establiched. be malnuised n Command inaidu
Certain typu o aetfons can nst be pesfoim-MD to maxle the deoLMeut
ed In 4 Lodd oveut,ol to the
hat tne
MDI Stauds tos Mule SDI Stauds
SDI Stads to
to
senge
the Load Buont cnplates.
Doumeut Doumeut
Doumat& can be Softch ommcd kelrdeo
Duence bho fom load and Acfue Events ensiluy P& ued to &tch bn
them
) Adfvate cueut happens aftes the Gul Whch to dbla to
foum_load eveut. |hos mee thn one dhos G deeunet
(2 The Acivate event procoduse fs a douumout ata fme Qame. om thesAQA
On the &Aen P& MDI"
bete place than he fem load evcnt NLincoug metapad
PArediuL to pet stastup od thaut CLethebet examle fs the bet oaple.
affeets ae faum's appeaance- a
load eueut Res
tom-load
The tom-
But' te Actuato ebut ihe
tnetip le tmes tneee the
loaded.

You might also like