You are on page 1of 25
algoharism.blogspot.com Microsoft Visual Basic 2010 Express. 4asie Events-l) oe 4eshe,1 (gal Gall (2.50) See ll ga GS LS Dl ge Ql I STG ls “Event Driven “isa (gle sein eal "9 C4 pad eal Visual Basic Express ease: Cus .Programs” OSs 5 Audi 5 gabe gl ge sh SAT clin Ge gust sl 55 Unive he Event Call a oS atoll the alot sf Gupte Gf Lil panne geal yl a Events Catan 2308 ull algoharism.blogspot.com os Ml @ Button 1 sia of cl :Button 1 tae ala 20) Sa ae (25) le alsa): Click Public Class G+ ws End Class * » Method ALN faa 248th lis End Sub wlPrivate Sub c+ iS eja 3! Code Block aw 2550 li gb Gane Fox [eaten Foe ‘ahblie Claes Fore -TosRe Sob BURTORE CTICR(E WT SOOT AS GOH Sob Bl Chek ede a Spt Objet Boe Ser Ere) Hen Baton, esageon Show How wk) indi 2 Events Catan 2308 ull algoharism.blogspot.com ¢ Microsoft Visual Basic 2020 Express: Laie $96) Quis} CisS,2 joe SUE GS Game YS CU Gan IE Gey a AUUS (8 pts a pal YI a Le Lal yall a gS0 GM) Speen gl Rae yl pal NY Gye Call dada Ube Gash a Sit gC properties yaileall sil lyie 3 8S 3 ph Guy Ge yal YI oda Ty] HetoWorld- Microsoft Visual Basic 2010 Express File Edt View Project Build Debug Data Tools Window Helo O2a- dea) *aalialS 2)o-e-s-S)> oa Ale & a| To |e) | ee we S| St Bt at] Forml.vb[Design]* a ©) Sci) aig Form ( HelloWorld Gal My Project qi =) Ferrel vb Ee Darton Sj Windus Forel 1 ciel] ~ chen a le ical Sok oe Events ‘ContextMent coaaas? ControlRem« ‘CursorChang a ll Spe iy ick ‘Occurs when the component is clicked. ADURGAY! juniall (Sy ill Glas) quea Gle Properties #8U Events sil vs sini 5 Events sa) 228 ya algoharism. blogspot.com (Gq Microsoft Visual Basic 2010 Express! gi Ua:i« frone= rn “ Events Clan) 20 ull algoharism.blogspot.com Microsoft Visual Basic 2010 Express take Bl ont Sig FR] wernometgtten vale atl aul oa — Lesson03 Aula Agel ll pene 2 [5] Leszon03 - Microsoft Vieual Bozic 2010 Express he ae File Edt View Project Build Debug Data Format Tools Window Help Ga-da|# Si 2 4|m ow age 20s We |S St Bt at u Eee Button System Windows.Forms! + EAE! > Font Microsoft Sars § « ForeCelor Il ControfText —| s Events Ssa¥ 228 ye algoharism.blogspot.com Microsoft Visual Basic 2010 Express. wd Aasie Buttonl_click(SyVel sender As System.C) TextBoxdsText = "pL Gt Geely TextBox1 pail Yq Gel ase" el petal Ss Ig Start Debuoging FS) pl 1 Nal aloe “se Events Clan) 20 ull algoharism.blogspot.com Microsoft Visual Basic 2010 Express. i Aasie (7 Buttond =| 7 cick Sl ea/ae ie Class Form Ey SF tessonos Seivate sub Buttont_click(@yval sender as ©] lena, TextBox ~ form nd | MackedTextBox J peal 655 Lh 1185 5 RichTentBoxLs Opti eA Asal CLS chTextBoxLanguageOptions GP RichTextBoxSelecticnAtrioute Adal bs Esra 4% Class TextBox 1o@ TextBoot Represents a Windows text Common [All (SD oS yaad SSL F US se ek ssn nealtes [TF cick 732/58 ora = ok Gal St iy 5 aL Public Overrides Property Text Gets or sets the curent tex in duly jf Gps ge past) |B Buttont_CLiek(5yVel senda AGL os pty sal) PEt ‘ily EA 8h 4 Appenétet oF SulecedTat yell) gle Gil aie bade = ce SSID 8s ge elie Bal al) (SF Textalign ‘gst (3 Tenterath common [Al ” Events isa) 28. al algoharism.blogspot.com Microsoft Visual Basic 2010 Express! 3 A 9S) AQUS (8 Hae Lud cal 9413 Aiale 9 US he Fes A GIT Gan as 13560) gle Marke ff Gls GUS 1 Bie 5 M8 pee Ge LSS cin 525) JSN2 (Lane yy UY0 bal Gal) Ca De AUS UNS Gye lS 835 Ge Oe ojo aaa yo Ass sl 2 SI) reoAMS pel Gly soli 5" 6" Guu ge Uae dte RUS uli BAL SS SI y 6 ey Lad 9 SE Sy Ga Gale J AS Gd a Sl Ge o Ja Gaal gl eli ce Aaa 2S AS a FN) ace Tey bed oye cd) pat eal oll A Gd Las eS ayaa dll FY OS y Hall ci gl le YN Gh ah gM as ek GA MAN 3M Ge Can Bg 28 ge Glbaall o jal le phe TH] Winsowsppienon! Miso Vine fese 2010 Sere © Prtvace sub sutors cLckoycat sender te system objedy a] Events isa) 2380 ya algoharism.blogspot.com 1 Private Sub Buttont_Click(ByVal sender As System.Object, Byvé TextBox Text = "Jue Lest Loyal” fle GS es Le "hep Vetechael sn bleaspet.c tne Sub end Close 1 hal pul ed itt: // (Gabel JS) 455 she id phaull 6) LBL 2 19980) So Que sha ll J pu ll gue iy gl gall 8 Jig all sty AAIS AYN jig) lis Tools >> Options : SHEDS geal slay ANI syle ° Events isa) 2380 ya Ge algoharism. blogspot.com & Microsoft Visual Basic 2010 Express 9 Ua:k« Private sub suttonl_click(syval sender as system.cbject Texttodtext = "JL! Gal Ly Gebes Gs lise, Li tone ve ae tae st Rages ci Cot 5 ops ge ‘gel pus ae "http ://algoharism blogspot .c: End Sub lend Clase so Events isa) 2380 ya algoharism.blogspot.com Microsoft Visual Basic 2010 Expressil i taste GH ,4 5&3 call Jals Buttond diss! G54 Ye button ill events Cla! tsi -1 Have pl oS Jaleo LSA) 5 ll Cael) Ciues Cas MessageBox.show("Name of Event”) PAG Gla Ald Click © Enter « Leave « MouseHover ¢ igh I oe $5) Gy gill 4a J FL dical b Event JI sal Sy Event I tidy aii gl I ro 9Sll Guat stextbox aadid ol Gye -2 MessageBox.show("Name of Event”) Aalievents I a keyPress © KeyDown KeyUp ° TextChanged Events Ssa¥ 228 ya Microsoft VB Express 2010 cgirinall ell Gepall algoharism.blogspot.com MAIS AAS y Wyn Ly Spall ga Via Sh kill 5 Legal ig ls el i Gd al algoharism.blogspot.com Microsoft Visual Basic 2010 Express ake Gl giall Variables oe desk 1 cle 5 shy OF Sey 5 BSI (585 Ege oll gadts 8 5 Variable tial! Ca pads Taye US one pus Say 5g « geal ll 4S th yall pad aly ge (Ade sf dae) ee lille pete apy OS V5 4 es tans pall A tle IS ge eal ll je el jell coh eM ay ASI I Ou ibe ayy Seg Y 9 Gas ies pal tle US « gel ll BSIML aay glSe Banna ay yb ell Gey itll pall gaa aie 2 (Sabai!) giles jas fay of 1 (ne rE) Laake GL] gle us gins YIL2 End , Byte Ste dane yall alll 8 4b ginal GLAS Gye pull Iba 9S VIZ Missa 5 Ald yl gary ob dll 4 PS jst gl gl ge Coat dish ey! Datatypes GUL! El gil oly 2 byte Faynce alsel Gan Integer Geese 4 byte Fagace slrel Gaal Long dash Gwe sie 1 byte false O | true 1 dail) Gants Boolean Vis 4 byte oS le slee! ganas Single aye 8 byte oS te alse! gauaiy double Ty56 Bbyte Abell joy 5 pS ty atacl gets Currency Ales 1 byte Dae String 4zya Ald 8 byte Date Object variant Dim VariableName As Datatype Wedded Wel il cal pid gi Nl Gayl algoharism.blogspot.com gd Microsoft Visual Basic 2010 Express. i 4asie PAGLAM Cal jattall gh oh gle Gay pat Aad al Datatypes SUbutl els Di myintegr As Integer = 2 integer ae Le in myBoolean As Boolean = true Boolean Yl Dim nyDouble As Double = 3.14 double zo Dim ayString As String = “Algoharisn” String Agia Alaa ‘sxoreSe Aue Velatasiel ybelish SLs eg uel algoharism.blogspot.com Microsoft Visual Basic 2010 Express. i 4asie 7 ciek Public Class Forel Private Sub Button Click(ByWol sender As Systen.0f * seanpe 12 in mystring As String ~ "2b" * Exanple ab Din myinteger 45 Integer = 3 Dis eyOmuble as Onuble = 3.14 Dis eyBocleen Ae Sovleen = True example 1¢ Dim hello As String hello = “hello world” ‘yetsatl Guay Le Le poke “pela tapes iets Gee tes es “hello worlé NezeageBox. Show(helle) TL Le pp “hello Las NessageDox.Show("hello" end Sub End Class 88 Webasto il y Sul stall gM Gall Cc algoharism.blogspot.com a g Microsoft Visual Basic 2010 Express! gi taste i ital Uy 5 LS, 2 3380) dale WyalsSiul GAS GY) pldie 5: Gk wi AAS y Gel sl y Gl aidll Ga Labs Agpnel sll 5 GL) Stal! adie TH Windowed - Wich Vaal ae 0 Era == aG|s2alale2lo-e-a-Slp ua Ff sd To lie |e BS St et || a alle Vaya! tle ges ays ey halle veoria essoge00%,Shon(helle) Tides ae pete shale nas) essagst0x.Show(*hello") * examle a) Dim firstTextBox Ar String = TextBox. Text Dim secondTextlox Az String = TextBond.Text Labeli Text = firstTextfox & 7" & secondTextBox nd Su End Clos 6 Wedelaied 5 Well cil pid gi Gey algoharism.blogspot.com j Microsoft Visual Basic 2020 Expressil i Zaie 132 phd! is 28 pla! yo 2 Sl) Sua "example 2 Dim firstText8ox As String = TextBoxt.Text Dim secondTextBox As String = TextBox2.Text Label1 Text = firstTextdox & " " & secondTextBox String cael pts firstTextBox dou! 9 J 9Vl jattall Gy pod oi ail apie 5 glad) oda Ga TextBox1 aaiell iG Sali Text Gaaill ya ol siney ot ol sine 5 String Gaai ALS secondTextBox dau! 5 gill jeiall Gy px a Lal TextBox2 waist! 6G SSaliText — sali paill Text 4ls!o Gail jel Labeld aiall 5S i, (Textbox1 44 sSall Gail ss 5) firstTextBox itll 42sia2 le (Aikecall ) peapecill ade Ga Liga ya Le (GB Lede alia Le why) + secondTEXtBox still 4y sins Le + dacal gh | le) Ga Sg! Gyan Gt Debug cle Lice! Gull a2 Sill ye Gagll agil AAs eli yell FS. oy ea oll SA Hell DB Gall Cnt A Gill gy pd Ged le aed aS LY che Bakaly 95S le paleill Ge yb Ge 26 5 22: ce peal ob 2 SI) gb Janll Gti Bie ES Yew Bare Bok 18 aa as Wedelaial 5 Well yl pid gM Gey algoharism.blogspot.com se qo PML aaa ital Sy 1 pal BZ eal er "2 Button] le bavi Microsoft Visual Basic 2010 Express! is taste A y\gelth y cl pki gi I Ge ll algoharism.blogspot.com gd Microsoft Visual Basic 2010 Express. i 4asie Sl gall €h gil Cue dasa) 4udus,3 ele y Tis jo SIS GS UGS oy Glas Gs Glial Gf Ge pall Te Ge DW o jal 3 dks AE SS Cae HSS TL Lge gil gd GIES Ga) yal ode Leal (GUiLy ssa Ugletd ill dau ce okt gay A gel Cilla gi a8 all ga Sih ELT oes da sail Ge Ga all oe Aly ya JS gle Ute yn yaiae 9B Lag lithe Gal yall gL ih uy Jy gall oly gh op tlle Jas Implicitye 1 Ai 5 A pd ol GUL J gal aint olitl petal Gy i Gant os 5 0 wo Ml Gadi (4 3 SIS (po Ale Joey GULL Migs Aol CLall gl gl dane Gye Stl ASS) pre diy pt! ods Guar o qual y sane dh 5 Explicity: 2 Ain Uo de anes y yueldl Ge wi Geely 0 Cabell gees Uf aSlall 5 AU pga: ol patel GLENS) ois aif da Ll oda Gactt oo ee JSG a Sulu TA pb JS be Ge jade OY! 89 Webalsiad y eel il s Sul stall gM Gall algoharism.blogspot.com gd Microsoft Visual Basic 2010 Express. i 4asie | Fomn.ver * amplicit conversion - dangerous Dim myValue As Integer Din myOtherValue As Double = 3.24 myvalue = ayothervalue MessogeBox.Show(myValue}) nd suo end clase, Velatasial y bel sh» Slat eg uel algoharism.blogspot.com a Microsoft Visual Basic 2010 Express take Velatasial y bel sh» Slat eg uel @ "HessagzBox.Shon(myVelve) bie Firstlextlox As Integer = @ Die secondTextfox Ax Integer in result Ae integer - @ ‘FiestTextaox = Texteoxt Text secondTexttox ~ TextBox. Text rezuit + firstrentiox + seconsvexttox Label Text = result end sub End Class Velatasial y bel sh» Slat eg uel algoharism.blogspot.com a Microsoft Visual Basic 2010 Express 3 tie Velatasiel ybelish Olas eg uel algoharism.blogspot.com Microsoft Visual Basic 2010 Express. asia i CH) ysl) (8 Cold oil) ae 4. rasa Leal 5 ¢ Sil yatta) apna 5 clip Glee A palin (pil Chis all Gas Ge pele recllal Still JUS (yo Logan yas « expression » statement Alga Lady ll oS} XS 1) Dim x As Integer x +3 uals Expression 9 Gill oS Ge Ul jbl) oY ald 5 « (hs Guage abet ate -Statement Lege Gill S85) TC paella gee Aus Statement 2"Expression ss 3a sae wishes gi Aye Be A Haney Aalens ce pac df Salil a yee Sgbeally Gt YAY AIG Yan Se Dim x as Integer dl Gy pet Garett Chbeal pil y dad y Cob Ghee Gat Myinteger=32Uully sia gat sl Fj Lay Le! sl sgl) Jats (ia gi Was std gl que 2>3 MessageBox.Show’ Hello world” de pele De} a J Velatasiel ybelish Olas eg uel algoharism. blogspot.com , Microsoft Visual Basic 2010 Expressil i tie GM SOK 95 Atl ga c A Gu pall 8 oy poball e Dhanll Leads alll geal pall oli agree! £1) Gy pad Bled pa Qe baat ad Ol yak gl} A eall GUL) que ipl shane Labels Aardtoall Ol pata 82 Few Ss | Text box aed mel =] fests —— Combo Box ee Lent (come — toe — seal) cles sia TT | list box (clsl Ay gS — ad) he say Radio Box 1 ests 4p | chek Box Button cancel AY! sok 25 laste yWgelyth y Cl pil agg uel

You might also like