100% found this document useful (3 votes)
8K views

Gui Application Using VB - Net Lab Manual Answer

Uploaded by

Bangtan Army
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
100% found this document useful (3 votes)
8K views

Gui Application Using VB - Net Lab Manual Answer

Uploaded by

Bangtan Army
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 151
WL Apy VIL Resourees required / Specification ce Quantity fe Computer System | RAM minimum 2 GB onwards system | Windows 7 or Later Version/LINUX version 5.0 or Later Version Microsoft Visual Studio 2012 As per batch size IX. Precautions Check the basic hardware and software requirement, 2. Use only licensed sofware 3. Follow the instructions as given in the instruction guide of the product, ir. No. [ Name of Resource Specification broad specifications inkel CRI come CTT ‘SRA me 4 aR 2 | Sofiware MS visual 3 Yudis Aol, a | Computer System wii Related Questions Note: Below given are few more such questions so as to ievement of identified CO. |. Differentiate between VB.Net & VB. 2. How many languages are supported by .Net Framework? (Space for answers) Maharashe } state Board of Technical Education ——_—_—_—_—_—_——_——_—_—_—_—__ GUI Application Development using VB.Net (22034) S.AMedewn.. 1d ‘Deut. NR..12.D. Rol ‘Maharashtra state Board of Technical Education I. Exereise (Teach ign separate exercise to 2 cher ssi group of 3-4 student) 1, Mlustrate the use of Just in Time compiler in VB.net 2. Define user defined namespaces and write procedui 3. Write the various system requirements for Installation of VB.Net (Space for answers) : ‘Maharashtra state Board of Technical Education 4 4 4 a ‘Maharashtra state Board of Technical Education aff GUL Apptication Development using VB.Net (22034) vin. IX. Will be flagged as an error with the note, “Color is ambiguous” and .NET will point out that both namespaces contain an object with that name. This kind of error 1s cal : a “name collision.” are usec This is the real reason for “namespaces” dnd it's also the way — aa other technologies (such as XML). Namespaces make it possible srganized. You abject name, such as Color, when the name fits and still Kee Bey nactones ti could define a Color object in your own code and keep it distinc NET (or the code of other programmers). Namespace MyColor Public Class Color ‘Sub Color) “Do something End Sub nd Class End Namespace You can also use th Dim c As New MyColor.Color cenee 1 is contained Before vetting into some of the other features, be aware that every PrO}e 5 - f in a namespace. VB.NET uses the name of your project (WindowsApplication| jor a standard forms application if you don't change it) as the ‘default namespace. 1 Color dbject somewhere else in your program like tis: Resources required (Additional) Precautions a 1. Save the program in specific Girectory / folder. 2. Follow safety practices” XI. Program Code: (Teacher must assign separate program statement to group of 3-4 student) Write a program using user defined and existing namespaces in VB.Net. Maharashtra state Board of Technical Education i F 4 ¢ GUI Application Development using VB.Net (22034) ane apace demo UGS “DAse - onal Pubic Kunchloh diaP CBy vay As ines?“ write line clineoutput is) ReT aend LunctioN eNd clas end Name apace Sub map DIM odd HS consdle Application y. demo base= new ConSole ApplicatiaN \ demo pave PSY BOX Cobs .dioP C199927 Cons6 \e_: rine cD EN ub en D module- XII, Results (Output of the Program) ‘Maharashtra state Board of Technical Education GUI Application Development using VB.Net (22034) I XII. Practical Related Questions lote: Below given are few sample questions for reference. Teacher must design ‘more such questions so as to ensure the achievement of identified CO. 1. Differentiate between namespace & assembly 2. Compare between option strict & option explicit (Space for answers) Maharashtra state Board of Technical Education | Exercise (Teacher must assign separate exercise to group of 3-4 student) 1. List namespaces in VB.net? 2. Write a program to implement the namespace Student in your VB.net Application. (Space for answers) ‘Maharashira state Board of Technical Education "1 Exclamation Icon Question ‘Question Icon a I Wilmot display any ieon Types of Buttons:- DESCRIPTION _ MEMBER P d Ignore buttons ‘Cancel RetryCancel YesNo_ YesNoCancel VIL, Resources required (Additional) Com eurer.... BUOte.N, BO: IX. Precautions 1. Save the program in specific directory / folder. 2. Follow safety practices. Resources used (Additional) ram Code: (Teacher must assign separate program statement to group of 3-4 student) Write a program using MessageBox & Arithmetic Expressions. Public class Aommd DIM a AS iNregew Or Mm vb AD Ne gee DVN CAB inked. Maharashtra state Board of Technical Education ee cet, i Asaliton Developmen wing VN 2030) ' PO vate Bub rex} Box lex 4 changed CRy vay" Sendety Gudstem obd. guaiem . event AVIS | Dandies dex dboxt tex 4 changed bart c= tex4 Boxs AeA , eNA BUb : Private Bub text Barn. text cranded CBYVa) Dende AS ouster . obo by VAJIUSIEM -eveg AvgHand les tex hb Boxes bextcnange d tS tent Bo xr. 1ex+ a Sub. Pra te gub Buttond. clics CRY Var sender AD BUSte M Ob) Va) AS BuUSlEM -eVEN HAMA ge Hand jee eee \. click: : 7 7 : ai pros box « ahown c\Ada Hon 19 'sc) End 9ub Pravicate au b BU KPXClick CBY va) Sender fi 2 BUS-LeM. Ob ING) AS BUBteM event Av9d) Busan @ elich. . a vial | Mag ox. show c’gubI9" C7 sen Pravake ub Baton eric, CBIv a uesen Czraxkb ,) so\a aM OF Dmoagoxe* ath plication" cD) ‘Maharashtra state Board of Technical Education | —_ rr T+ Gil Application Developrent using WILNet (22034) XII Practical Related Questions . Note: Below given are few sample questions for reference. Teacher must design ‘more such questions so as to ensure the achievement of identified CO. 1. Write the difference between MsgBox() & ErrorProvider Control. 2. Describe any four types of MsgBox() window (Space for answers) Name.) exck.. KALA Maharashira state Board of Technical Education “HL App 1 YH Nes 270014) OOS 0 OV TAG DO. %.0.208 Ly O00 o 7 _ Yae Maine of AM S..100.0. Ot CoN. Ave HAY. Of, yh hae OVC WAL VQ SABC 1 :) - HMM Gol Qa ay 7 \C Yar Ag onvococa) Vol : ANG... AIUE OF Ae Watal \e 7 nl LN ODL cmta of a) Nhe Dect: 3 hbo “SS wn on ae = Ane value of ing.icod. : An COT ASP O09. {OGL M2554. 30. VA 1S. defined. by. 2% 2G be) “Jyh. &rclamations eS rae eee AMD. BD red Reha AE, AOL) nt SOP LOAM. S120 NBSASEA tH... Let nerd. D ) Ayn, A. : fo Leon AEG. Maharashica state Herat of Technical Education Name=Tejas Deepak kadam, Batch expriment=3 number is even or odd. Public ¢ Dim a As toteger Private Sub Buttont_Click(sender As Object, © Fvent)) Handles Buttond.Click a = Microsoft .VisualBasic.InputBox(“enter the AS number”, “text, vb¥es, 160, 100) If a Mod 2 = @ Then MsgBox("the number is even") Else MsgBox("the number is odd") End If End Sub End Class — ianarasnira state poara or 1ecnnical Faucation T)2. HS * : EWN) Sb. Implement the program using if-else statement to find the » Name: Tejas Deepak kadam, Mateh: $3 Experiment: 3 Write a program using WFelse statements Publie Class Faria Dim leap As fnteger Private Sub btn_submit_click(senuder As Object, 4s ventArs) Hanelles btn_submit.click leap = txt leap. Text leap Mod 4 = 0 Then MsyBox( "leap yest") Msgiiox( "not leap year) End it End Sub Mahafashtra state Board of Technical Education neng Su u S01 20 oO) ( i GUL Application Development using VINet 20M) XIV, Exercise (Tencher must nssign sepurate exercise t [Implement the program lo generate result;of, Bru Of 3-4 atudent) MsxBox 0. arithmetic: operation usi 2. Write a program using InputBoxQ, MsgBox() & Perf ‘i * expression. form various. arithmetic (Space for answers) ra Su. a ick. wal. dew AO. Bu Steth..0bI2c: A. sus hem, event Ad 9 2 NONE button |aCick micwagors., WiSue | ' “Maharashira state Board of Technical Education \en8 T' 100,200) 9 = : i W195 Suid. GUT Application Development sing VI Het (22014) nivale. Bu b.bwddan. ciel Chy ya’, 4 nde? ngeaee it Va). By edeth “desi NaN A1e5...bUdd00).94 Cli bhi hay iNPuk..BeY Clenlea Secon a £ PONE NOD. 5 MOO. (0d) Ba). ae 04 JAA) Sy NLlede. oatunate ate sete AMOK, HAN dee 7 he, SY Ste...) by vale Ab fal’ AC LO even BANGS) Nandles bao fi CML. C5 bpp MSg..b0XC AAG ONAG Ze) OSG Wy cae BUD... ea MD. inte. 4e9 . F a Oa b...kad Aon Nick. Coy val Zan obo by MO. B..2Y AES) € VED Fog py b. = TON. 4. UC}... af Tat adkenadion 1% /Ad5 \ Qte¢ panuate Bub se Tlic EL ob 4 UDI Dette A.b.o4S12...0b)39. bY” ver 8 N EA 0.3.00) BS. ‘eg pomwa. betas NG. AALS. a BUG, en e DU of 6. “CUCk.. st _— alin; “mA, MILE or B £...6 ) \ VN OF 4 fide AS et GieiA a ny ah ‘i fai ete! us f "r —- Va Ades, Stor’ iy \ at 1 mt, ve, Maturostira ste Howto Tectinival Haentiny \ d A.0[ 1 Abpicatea te yelipibient aie Yi.Nes 22004), Pratieat Nod: Implement a projtenm for Helse control atrvctaves inv VINER, Penethat Sintflenive onder af events Dive bite VALNE'T's ventral stmictiees and lena how to control Are enter oF events jn YOU prow Ntidy The Dusiew of the Hand Hebe: statement Hetevanne Promraniy Onteanien (POs) © Harte tinawtedge: Apply know 1 the Felt af conypnter note NECTION AS AE Appling sy henwatio anal enn fiseehwanre of computer engineering fold to + Dischytine knawtedger to apply a co10 cen ane applied engineer ine prob + Hapertinvents and prnctica: At eae With ite realty fy sabve ceompnter exqriniceringe proble > + Hnaheeetig footns Pornintate andl solve problems related (0 computer engineering Fie ving appropriate techniqnes/tooks Competondy and Practleal stdtly This prncticnl expects (a develop the follow Develop VLNET progenms 1 Write VILNBT program to 2. Conipite/Debup/Save the VBLNIT progeam, akilly in the student group related probloms, of ielse statent Relevant Course Outcomes) # Develop GUT Application ning Forin Controls and its events Practteat Outcome (rOs) + Develop programe to demonstrate use of 1°, HE etve Control strictures in VB net Relevant Affective domain related Outcome(s) 1. Follow safety practicw 2. Vollow ethical pructices Mivinum Theoretteat Backyeound 1 iv conditonal statement which executes a group of stated of an exprension Hecondition [ Then} {statements} Fhe condition | then | [statements |] s depending on the value [Filse: { elvestatomients | | Hind if Kesources required (Additional) AVC), CRY ¢ CCCI } Ottis f ‘at tod I etait ote f panel) ea teal 1 specific directory / folder. eecatiOnes Peeve the prograln | J Fottow safety Pm ices. onal) presourees used (Additio x 0 \ noe come. .CTM > io, wares CeSan spust assign a separate program 0 2 group, of 34 program Code(Teacher _ | module: module | Sub Main oO. pim eae AS intege™ yeav= aol: q yeline chuedals.: E4e9%) congolé wd ; 2 cueas op 420), THe) sreline CU eae 1S \eap Ueda year }o2eolb Uead jo leaP yeas2ole. Mahar ashtra state Board of Technical Education GUL Apptcation Developer using VULNet 22004) \ —, NUL Results (Output of the Program) : tan 6 NY AP QQ.c id i NIM. Practical Related Questions Note: Below given are few sa more such questions 50 as to e {Implement the program for fi 2.Implement the program usin imple questi, nsure the achien ne ference inding great Ment of aac each, ft ALCSL OF three eritifiegs her my 8 iFelse statement to fing bers. Co, Mus, en (Space for answers) Lady, Mg oye! Mbep : ris Ven ‘Manarasnira sta poaru or recnmeat euucauun wing VB.Net (2200) Imo due. Module. PG y..d- ARO4AL3 DAB ot DM rene Fad Gennes eli. jan separate exereise to group of 3-4 student) Statement for the following output. “Percentage Criteria perc <60 60 AND pere < 75 Distinction 2. Write the output of the following code Module Module! Sub Main) Dim i As Integer i=4 Dim a As Double | t | | = state Board of Technical Education = 28 Development using VIL.Net (220.4) am -10 IG > 0) Then I> 0) Then Console. Writ 0") Else am Mere Tan, I Waropuens Gonsele Write. Noh My ‘onsale WriteLingc@n® Mere |, End i Snot ‘Aetuatty 22 Eng " Console, RendKey() End Sub End Module ny Tha, (Space for answery a=-1.0 If (i > 0) Then If (a> 0) Then Console. WriteLine("Here 1am !!!!") GUI Application Development using VB.Net (22034) | ' Else Console. WriteLine("No here 1am ? Console WriteL ine(* Actually here Iam 22°) End If EndIf Console.ReadKey() End Sub End Module (Space for answers) Maharashtra state Board of Technical Education jication Development usin yu. renee ee (Additional) ie CRO. com 8. Cot ns. Ix. 1. Save the program in specific directory / folder. 2, Follow safety practices. x. Resources used (Additional) XI. Program Code: (Teacher must assign separate program statement to group of 3-4 student) Write a program using Select Case statement in VB.Net. module module } Sub Main cd pim Avade AS Chae apadeé ="B" . \ Consdee .wwmiteli nec grade io) 2 9rad © Belect wrteliAe code Jood & case “A” — console «wri beline CV akinction") case BY oo . congolecwrirte Ne © Pivot class) cde \ev / console writeli ease" o Console write line case * gt console . wire tine ct fail") END elec END Sub. Maharashira siate Board of Technical Education ne c'second class) c" pass!) 29 GLI App went wung VIE Net (22084) XI Results (Output ign D NT 2. g : a ot! class XIIL. Practical Related Questions Note: Relow given are few sample questions for reference. Teacher must design more such questions so as to ensure the achievement of identified CO. 1. Write the use of Select Case statement 2. Draw the flowchart for nested Select Case statement (Space for answers) Q\., \ ANE Saach case. doehen t.2xi+ in Vist} abit replaced by. select case State men) ay.ne Select Ca$e.1.9.9.diS9usiag & Ne any Halemnent q W154 Very. powertul.€.T would mm crecommend 1 2 Sbud using aelect Case ys Soad. Sometimes to..use { O.MAK€. Yaya coae...eahj Iy.ub0. 02. Deal 24 Plow chard | Taclecicace | Statement... Cac caame) Statement. — 3elect Cage conn FEED EE] Aue Cave st” 7 “ereare ts claje~ 9 Have ger ‘echnical Education —— Mss Case Ee Mse EndSelect EndSub EndCkass ox ls abil grade") YOUR GRADE wine Hes Button Clie! y Handles Bur 1.Ctick Jer AsObject, € AS — cr ation Development using VB.Net (22034). gxereise (Teacher must assign separate exercise to group of 3-4 student) 1 PE mplement a program using Select Case Statement to count the number of Vowels jn A to Zalphabets. 5, ‘ewelop a program for performing arithmetic operations. (Space for answers) Cas, tratb a .~ liinasiva state Board of Technical Education 4 GUL Application Net Conbale.: orm teline.c Additions" eae Ven . Y=abab \j (ean i Conse 6 wWTbeMAec su btmac. ony Cae aL le writeline.c ‘mmathiph CAAON. See ath. case... eg Boy le. wT be eline.c divison.. 1.9. ERS end le ee ce eee “read ines. a end..auwb os a eA D..m.a AWE... ae- uwis.aOd oe Medule. Modules. nm.letie tas chaa.. Dim count, aft? i letiemoe : Count. a. Selec case lelteas casé..c. al) counts ound, —— case te. = a COUN t, 2 COURL. by 1 a cote Coun = Couns 4a)" cases V9) Counts count: +1 case. uh Counts cauth FI END. aw. Selecd Ledbereonae Choc ele Maharashira wate Board of Technical Esato Jion Development using VII.Net (22034) 1) Roe 1. huups://wwwalotn 2. huupsi/avww tutorialspoint 018) dh mi/vb.net/vb.net_select_case_statements.htm(20/07/2 nicrosofi.com/en-us/dotnet/visual-basic/language- -case-statement(20/07/2018) xvi eee ee cc Process related (15 Marks) 30% | ability 20% | Follow ethical practices. ox |___——pr oduct related (35 Marks) 0% Correctness ‘of Program codes 25% | Quality of inpulZoutput messaging ‘and output formatting 25% |-Fimely Submission of report 10% Answer to sample questions 0% —— Total (50 Marks) 100% | List of Students [Team Members eda... 4.0 2 DEM. pus 3 anusnenr..Patt| 4, e pany. IAC LUBL - Marks Obtained Cate Process Related | product Related (35) | Total (50) (a5) fot ‘Maharashtra state Board of Technical Education 3 celopment using VB.Net (2203) tly a dite roep aloe qual ication Dev spill the’ giver! condition is. true, User can terminate the loop. by usin, ri y using Exit Wh Exit While starement syntaxt While condition ' ts Statements End While esourees required (Additional vill. yx. Precautions 1, Save the progray if specific directory / folder. ices. i Follow safely Pr a ane used (Ad x. _ Resources m vo | Code: (Teacher must assign separate program statement to group of 34 Write a program using While & Do loop statements in, VB.Net. module module : Bubmaif Eines mode} nm AS antedee 0} ubmaif in) re fasintetes while 1 ¢2 \o Dd console wit eines) console ritelinewD p24 Aan J : END wn Ue ; LooP wnile cnclo end Sub ead line O CONSOLE. Readl neck END module Enp sub END module: 35 Maharashira slate Board of Technical Education ee , Ay 7 sons 5 xUL ae a nee Questieee sample questions for reference. Teacher must desten | ie Seren ey as to ensure the achievement of identified CO, ‘en imore such questions 50 31° pie lop statements in VB.Net 1. Differentiste While & Do loop statements in VB.Net 2. Give the syniat of {Space for answers) Maharashtra state Board of Technical Education ‘Maharashira sate Board of Technical Education GUI Application Development using VB.Net (22034) For Each loop in VB.Net ; For each loop statement is used to access every single element in an array and alg group of elements from Syntax: For Each [Item] In [Group] [loopBody] Next [Item] Item: The Item in the group Group: The group containing similar items 7 | LoopBody: The code you want to execute within For Each Loop VUIL. Resources required (Additional) IX. Precautions 1, Save the program in specific directory / folder. 2. Follow safety practices. X. Resources used (Additional) XI. Program Code: (Teacher must assign separate program statement to group of 3-4 student) Write a program using For& For Each statement. rmedvay in be it Sub mai 2 Di AS eee Double | Console s wmidelinecenters+nenad fot iso Toa r!9 Shep | console. wi tine cid next console, Read line EW Sub END mModual. | ‘Maharashtra state Board of Technical Education a2 (uL Application Development using VB.Net 22014) xt. Results (Output of the Program) ye he ce eroensrocny MdetidannnbdietogeSpacpelaepule jue progspoohibioye Practical Related Questions Note: Below given are few sample questions for reference. Teacher must design more such questions so as fo ensure the achlevement of Identified CO, 1, Write the output of the following code? Module Module! Sub Main () For i= 0 To -10 Step -1 onsole, WriteLine(i) NII. | Next | | Console.ReadKey() End Sub End Module: 2, Write a program to generate the following output | | | | (Space for answers) Mate Hoard of Technical Education KI duals mm vs ok j | | r | Mahacaeters wate foard of Techowal Fadacation * name-telas kadam Roll NO-53 gatch-03 modulemodule! submaint) pim n asinteger forn=1 To 10step +1 console.writeLine(n) Next console.Readtined endsub endmodule e yet Administer Documents Nsual Studio 20127 5 mi $y Name-tejas kadam Roll NO-53 Batch-03 submaino Dimn0 Asinteger = {1, 3, 2, 4) DimiAsinteger ForEachiin n Console,WriteLinetl) Next Console.ReadLined Endsub EndModule ‘Maharashtra state Board ot Technical Education ae goll or? gor awe program 9¢ oo eet generate the folio wing 1 OU put st im asl spouwle 1e fore 235 5 stel 35 oul in 0? oe consol" peadkev! ends? en a ocule lowing code @ ai write the output foll Moduleniodulet * subaind + fori = 0 To -10 step -t 4 console.writetinell) 7 ext Console,ReadKey0) + endsub | EndModule Meee ira state Board of Te hnical Education yet kadam ig tau nos gout jule 1 aurenr" mynain? pmnn asinteger om nt, n2 asinteger _ 20 500 nt n= 0 y= n0\10 enownile yn 2 Then “writetinew) no Mod 10 wile no oientnt nt) englf next readLinel ee endsubD sngmodule ss |. Exercise (Teacher must assign separate exercise to group of 3-4 student) 1 Write the situations where For Each loop statements can be implemented. 2. Write a program using For Next loop statement to, find the Armstrong nurnbert between 1 t0 500(153 is Armstrong number 1°+5°+3°=153) (Space for answers) ” hira state Board of Technical Education Maharashtra state Board of Technical Education WU Apc Ha gto at yng UE Ned (22001) ey VUE teaourcen requited (Additiowd Com Pyhe dg Oy ee th. ALE CRD Wao. fC de, BES dh. MUU hd. BA LAy A 2.QY CU YG Bf DE SEEING, 2, 69 2.0 of AB. GLDND. AN. Myeosnntiny (Save the progtane ue xpecitio diveetaey / folder A Vittow nately paaetics, XN Resources used (Additonal . aunt Jaa gue Lode} Tos. 4A Le a INL SaOTAeRy Graco. Ai Pregeann Coder (Henetor must avsige separate program statement (0 group of 3.4 | stuutea) : Write a Pageatn 69 dlernonnstraty the use OF Bation, Textbox & Label. fable Cao Powen dh . privake Sab Buttan 9-cliak cbended AS, obj iG EVEN Poy Nadle® bu¢+4ons. click Labret texts bext Bort. bext Lable a. “pex} = herd Boxe . Teck LableS Text =text Baxg . Tex) labie 4 stem Boxd. Ter FAP Sab ery yorte Sub Bathe Cluck CSendes ABO bo AS even? Pagsonandleds Butt 1 O.click. Tex+ Gor] clea 09 TENA Bova. cleawe? Tent BAYS ELEQADO) TEN+ BAX ov. Cleay C I i . END Sub il Oe theSa b button click cBeNdeS AS 6 boas EN ent ayes NaANGIeS buttan) a \“K D Nts i Roan of Technical Bupeatioa a) i NES TS BAD'S lass a yjos Kadam puplic privates putton pim x pimy pimz! A x sub ail click a sString he Box! yextBox?- y x{Box3. Te’ MsgBoxt®) MsgBox)? MsgBon(2) EndSub findClass va Click(sender AsObject .¢ Ast entAr ) Handles Text Text Text if sow | sopinent using VB.Net 22034) Develo" Results (output of the program) i elated Questions | xin, Practical Re ven are Jew sample questions for reference, Teach ° Note: Below £05 so as to ensure the achievement of identified CO, en such quer ¢ Tab Index property of the control wi i sreaet je to generate the button at runtime in VB.Net 2. Wri ler must design (Space for answers) siaharashtra state Board of Technical Education Q12.publi.c..clage. Seat Oi A.S..in4 ‘GUI Application Development using VB.Net (22034) ae Bub, dy Maric. TexXh.bO.k. Gick mn Show.c dy. bus:to. ; ign te exercise to group of 3-4 1. Write a program to perform the arithmetic operations using controls “abel, button & textbox 2. Write a program to change the background color of the form when user clicks on different button. ae | ‘Maharashtra state Board of Technical Education 32 js kadai 0-53 Name ra to perform arithmeti ic oper ations apr pin pin ai pin S var snc pimbiva stint privatesub Bu patent .Click von Click(sender AsObject, ¢ Ast m6 Aslvent Ares) Handles xtBox L- a = TextBox. add = +b si add) EndSul Priva nes pn Heke AsObject, ¢ Asi , ventArgs) Har es) Handles Button3_Click(sender AsObject, e AsEventA entArgs) Handles EndSub privaeSub E Button3.Click § = TextBox |. Te: 2.Te: Mul =a MsgBox(Mul) EndSub PrivateSub Buttond_Click(sender AsObject e Ast u , ¢ AsE-ventArgs) Handl landles Buttond.C k (Box. Text H= TextBox2. Text Div=a/b MsgBox(Div) | aoaaeng Name-tepts kadam Roll NC 53 patch-03 publicC la 1 ssh orn ; “Hh ub Button _Click(sender AsObj ject, As Ey kK Color.Red privates putton IC ‘liel ntArg \vs) Handles Back¢ ‘olor gndSub fendClass ed formt 'anshva sate Board of Technical Education ns for further Reading .conlen-uslibrary/dd492178 ag 3 pnpe://stackoverflow.comv/que sto 208 puttons-dynamically-at-rintime-in- vb(20/07/2018) (boxes ja label XVI. Assessment Scheme Performance Indicators | ---Brscees related (15 Marks) [E [Debugsing ability “3 | Follow ethical practices. Product rélated (35 Marks) | Correctness of Program codes Quality of inpuvoutput messaging and output formatting | Timely Submission of report ‘Answer to sample questions Total (50 Marks) List of Students ‘Team Members ’ , 1. Tejad..0..... adam... 2 Vivek.B. jlehad ke 3. GUONALN A.A... POs ) 4. Wehr nA hugane . Marks Obtained Process Related | Product is Related | Total (0) 35) 4a, | | \0 eee a tt : Maharastra sate Roard of Technical Education ad Oo GUI Application Development using VB.Net (22034) | VIII. Resources required (Additional) . he) pe! Bus ern ie y | IX. Precautions 1. Save the program in specific directory / folder. 2. Follow safety practices. X. Resources used (Additional) XI. __ Program Code: (Teacher must assign separate program statement to group of 34 student) Write a program to demonstrate the use of Checkbox & Radio button Public class forms. | private sub Radio butbond - cheaked-~ Sendet AS ob ei:ASevent ATY O handle Redo sutton 4 cheaked changed. | Cracked box 4. cheoked=Redia = button, | checked BEND Sub/ Private Vub Radio button 2. cneckedsende Ob> e€, AS event Ang) handles Radid bute cheaked changed . | ae kedd.checwed=Radio button. chek) 2a. END ub | END class. ‘Maharashtra state Board of Technical Education Development using VB.Net 2204) xi put of the program) Results (out ct. Penetical Related Questions gulls Pity Below giver! are few sample questions for reference. Teacher must design ore such as fo ensure the achievement of identified CO. monte a Dl using Radio button to chanize the bulb state ON/OFF Tse avo images one for ON state and another for Off State) +, Dilferentiate between Radio button and Checkbox Control (Space for answers) Maharashtra state Board of Technical Education ee eee GUI Application Development using VB.Net (22034) ' WASO-..C A... 'se-leck... fous neciis.ba. Exercise (Teacher must assign separate exercise to group of 3~4 student) 1. Write a program to change the forecolor of the text in Label (Use different radio buttons for colors i.e. Red, Green, Blue (Space for answers) ‘Maharashtra state Board of Technical Education ee .. a Nal Kadam poll No: 53, patch 0:53 ne: Tejas ass Form, public Cl ee subet_cheskedChangedtsendr Tai ForeColor = Coler-Red 1 As Object, © As EventArgs) H End Sub 85) Handles ¢1.Checheuh ange schedChanged{sender As Obj “olor. blue aa private Sub r2_Che € As EventArgs) Handles 2 Check 2.CheckeuChanged Jal ForeColor = End Sub CheckedChanged(sender J(sender As Object, ¢ As EventArgs) I Arg) Handles 13.1 les 13.ChecheuCh hanged Private Sub 13 Color.Green fal ForeColor tend Sub End Class snubham Salaskar | Shubham Selaskar ‘Maharastira state Board of Techn arashira state Board of Technical Education irene ii CLL ader As Object, € As Events) Handles rl Checked class Forml sub riche scked changed checkedChangedtsensder AS Object, € As EventArgs) Handles r2.CheckedChanged [As EventArgs) Handles cl CheckedChanged (sender As Objects & Jer As Object, € As EventArgs) Handles 2. heckedChanged private Sub 2C necked Changedtse i exchecked Ther (aTest = "GUD" End tend Sub private Sub «3_chechoaChangedtsenser AS ject, ¢ As EventArgs) Handles 63.Checkeu Texchecked Then theckedCh ores 'DCC End If o End Sub < As EventArgs) Handles e4.CheckedChanged hanged(sender As Object. private Sub e4_Checkedh ifed.Checked Then ia.Text = "SEN" end If End Sub End Class ee Matarahira sate Board of Technical Education srties, ) E _ iB Property Sr.No | | AlfowSelection I a | AutoCompleteCustomSour | 7 3 6 Manag’ 7 | DataSource 8__| DropDownHeight 9 10 11 | DroppedDown )DownC 12 | FlatStyle DropDownStyleCt 13 | lemHeight Selectedindex 14 15 (16 MaxLength 17 | SelectedIndex 18 | Selecteditem | 19 | SelectedText 20 | SelectedValue 21 | SelectionLength 22 | SelectionStant Sorted [2s [Text VIII. Resources required (Additional) er must assign separate program statement to group of 3.4 ra COP i Cc se ent gam! demonstrate the use of List Box & Combo Box Control. write # Mabarailzra siate Board of Tethnical Education @ ees : GUI Application Development using VB.Net (22034) XII. Results (output of the program) XIII, Practical Related Questions Note: Below given are few sample questior for reference, Teacher must design vement of identified CO. n using list box control. le combo box. more such questions so as to ensure the acl 1. Write a program to select multiple sul : 2, Write a program to select colleges using sing! (Space for ‘Maharashtra state Board of Technical Education \ Name: Tejas Kae m Roll No: 5: patch no:S3 pune cas Foe cc seston ems.Cleart der As Object. ¢ wesc As Eve Ang 1 wa Bsa ate = “VEG FOOD? Ten andes cmt a MICA X AR PANEER") Seletend Peters AckICPURE BLL AM") Changed | 1 RUN PURE ant cectaton = "NON-VEG FOOD" | vetiems.Add("BIRY ANI") ee t Bien GaCANDA KARL i | Tet terns. AddC"CHICREN 63°) End If End Sub End Class tem! v1 secnneat Loueaton gr to select multiple subjects using I ising list box e« contrat 9. Write prose ore a Q. Write cat CaweHtiOn1 av for stutent registration whic a istration which allovy student to rey to reuister mul Hultiple sub ubject for si i prog! qe public C 1 rags el qh tens jecel rents wd(’BMS") ciel) NG") onal a ws ss Ft sneindenchangsseer As OPI € AS ql As EventArgs) Han gpa? The vulles ebl Selected | 98 ex hanged | 2" Then Then [dtems.Adid leetedltem aid" 1PR" uid MIC Ios peeleb lS SEMA" Then Thos! tem [bos tems Ios [tem Tht ttems.Add(°GAD") fboxt-trems.Aud "DCC cond If rend Sub End Class set a _ a ‘add ("SEN") add ("JAVA") ist. Ustcp items: List. end sub end C195* [gg Form! | i - |sut - occ SEN JAVA multiple subjects private Sub Lit_sel n.selectedndexchaneed Lit. Ttems Add ("SE tin Ttems.Add( “JAVA tin rtems. Add( "DSU" ) tinirtems.add("GUI") End Sub tng C1355 ~ 4 , Matutaotiva State ualu v1 seennieal Baucation ectedIndexchanged(sender As Object @ | et | @ As EventArgs) Handles en EventArge) Handles for covteges us ng combs 10 box pret ora _gecice 50 Mabouox1 selected poolrava peed rosette al indexchanged(s a Sonos) Tene aa" Yer) ender As ob 4. 1tems. "Sit" 7 \dd("S1T") %) © As Eventar eS) Hi ordies fon'080% CNH) congont Teens AGC 3 pd ub aes a | Celta: 4 IS es ' i (ed a asa } 1s | { Masri Dota eaaateanl 4 enectedindexctan langed(sender As obs. eet 1S ten args) port? 6 oo%8 yw cam o8enanees a merc tedndey 0 ther ciear() oh physics") ENGLISH") nemistey") 4. Teens: Fees Add “Hees A jens toes sate wand OF reennicar Education A - yelv picture Box Control perties ofthe nse, peation precautions «Ge di Precmye the prog in specific directory / folder. } IX. ety practices Additional « (Additional) xa. Program Code: (Teacher must assign separate program Cay 0 group of 3-4 «, Form & Panel Control. student) Ayrite a program usin Toolbar, — — Maharashtra state Board of Technical Educ f cation pine nt sing 34) ENB Net (22056) 0 XIE Results (Output of the Program) XII, Practical Related Questions fe x i i westions for reference. Teacher Note: Helow given are few sample Wee vement of identified Cn MM te more such questions s0 as to ensure ee ieee Toole ee itn 1, List the control which is used to set He aso InVB Noe eM Control 2. Differemiate between Form & Pane! (Space for answers) Maharashira state Board of Technical Education : ‘ Name Telas Kadant Roll No Pavel we public Class Porn! private Sub Pat_Paintpsender As Objes Fant Rack olor = Cole Red Newt e As Pai APES) Nantes Tid Subs Tad Class 2 Fol tpaicl public CF private Panel nd Sul End class 1 Form) vss Form! gub Panel! Paint 11.BackColer (sender As Ob ject. © As P As PaintEventAry ss) Ha jane les Pa nel Color. Blue aint fiejas Kado” yar Roll gaien 00°? public Class Form 1 Private Sub ad(set sam rt Dic LSI MB ie = Pic mFile("CA\Users\Pub vent piel | SizeMode re eeBoxSiaeMode abides ME Stretchimage yB age leP jase.Loa ices Uures\Penguinsjp 8") | End Sub nd Class = NA ou ¢ -. scerTeacher must assign separate progral c odes (Teac! program statement to group of 3-4 xi. Programe se) Write a program using Tab control, a Con Matarasiery state Board of Technical Education zs aey GUL Application Development using VsNet (2203) XIL Results (Out of the program) XIIL. Practical Related Questions Note: Below given are few sample questions for reference. Teacher must more such questions so as to ensure the achievement of identified CO. 1, Write a procedure to display the icons on the Toolbar Control. 2. Differentiate between Form & Panel Control in VB.Net (Space for answers) design Maharashura state Board of Technical Education petuning VIN 2208) pane| ANe..cadba te. Mepaney car: ‘ AAI. io A cone yhoo. b. AME catrianie.d> iat COLO BES N50 bo hosd.a. grou P 7 oP QTY LAT Nt A laueckh coon ANC..CONE ID | Pane | SMe Me DAL CA. OVC IO PER... COMPONC IY oP — \ ea Ndow.A€ APM COW SOP 4 WoAclowy waa. pamewide.o.a ye oul by. Ao wed & Syehenm ALas..congst, Oh..A OPAPPILO nad ANclude maadine wa. oo AMMONIA ~ IMC. DBI. Maharashtra state Board of Technical Education 76 ¢ of Tab Control in VD. Net vate SUD rorm_toad(sender As object» © ‘as EventArgs) Handles MyBase.Load [emit TeNte| : : : | | camputer Science and Engines | | | 100 Prot. B. 6. Yadav | | arguatt | menses Object Oriented Progremming | WN 19 Name: Tejas Kadam Roll No: 53 Batch 0:83 public Class Forml Peivate Sub Timerl_Tick(sender As object, @ a: Tf QvalShapel.Visible Then oOo Ovalshapel.Visible = False ovalshape2 Visible = True Qvalshape3. Visible © False Ovalshape2. Visible then ovalshapel.Visible = False ovalshape?. Visible = False ovalshape3.Visible = True eset? OvalShapes. Visible then ovalshapel. Visible = True ovaishape2. Visible = False ovalshape3.Visible = False end IF eng Sub EVenEAPHS) Handtes Timeny nerd They Else! Private Sub Forml_load(sender As Object, e As Eventargs) Handles MyBase. Loa ovalShapel.Visible = True OvalShape2.Visible = False ovalShape3.Visible = False end Sub Private Sub OvalShape2_Click(sender As Object, @ As EventArgs) Handles ovalshepe2.C SBE | era SST E)] vim aw bros U1 J ential Euucation { \ } { ’ Name: Tejas Kadam oll No: $3 jpaceh no:S3 public class Form privat TF ovalshaper Vis ‘ovalshape} ovalShape?-Vis jovalshape?-Vs Edsel! ovalshape? ‘ovarsnaped Ws ovals! gisert ovalsnapes ‘ovaisnape! V3 oval oval end If end sub shapes. Vi" private Sub Form_Loa ovaishapet.Visib] fovalShape?-Visibl ovalshape3.Visibl end Sub private Sub ovalshape ovatshape2 Click private Sub Rectang] nectangleshapel Click End Sub end Class fe sub Tmert_ THe! (5 Vs ible = false shape2-Vis apes.Vis shape2-Vis ender As Object, © As Eventargs der args) Handles Timert.Tick ble = tue sip = False sible then te = False sible then sie = true Mle = False ole = False sender As Object, © As EventArgs) Handles MyBase.Load = True = False False Click(sender As Object, © AS EventArgs) Handles haper_Click(sender As Object, © As EventArgs) Hand] sstmucat Buucation cn aplen Dvelemen ang Vet 220) 4, Public Funetion Split (input As Stringy As sy String’) | Kiapression Deseripti : ptio | {abel Hid any charactor bea tsi = ¢ brackets > | ein Pind any cha F | i y character NOT between t 09 Find any character between thet [09] Pind any character NOT by | (ly) Find any of the Fat, Resources required (Additionn We. “OL IX. Precautions 1. Save the program in specific directory / folder. 2. Follow safety practices. X, Resources used (Additional) xi. it) program (o perform validation using ErrorProvider & Regular Expressi ression, Public cla g8 Foon Prirnie sub bulondcli Nonaes, ane ene some As object ec, a Text Goxd . Text =") 4nen STROTP HON der: aee iderd ,Seh erwrot Cert Bord “name iovred End Sub Fra Class. AS tuentm Maharahia sate Hoard of Technical Education ————SSCSCSSSSSSSSS*« faharashita state Hoard of Technical Education a GUI Application Development using VB.Net (22034) 0 : XII Results (Output of the Program) XIII, Practical Related Questions Note: Below given are few sample questions for refer more such questions so as fo ensure the achievement Tanne greacher must de 1. Enlist the different types of constructs used for regular ex epee 7 2. Write a program code perform the date Validation using Enver? (Space for answers) FOvider Conta) vat iy to mole re exmelon ays Soa Agcablect, os Even Arps Hales Hutton ch Stet sae Mc aise ol ote) Hy o (Beat | ming eror provider for usemname & passwort gave a prt 9 perform patie Class Foor! ye sce Sub batanl_Clich(sender AS Object, As EventArgs) Handles bata Click fib Test =" ErrorProvider hl. Focust) Endl ribo. Text Length > 7 Then | end ' ErrorProvider! SetError(th2, End Sub r End Class :rrorttbl, "Usename is Invalid") seamen Pasead 18 o (Gaasince) form using error provider mobile no & email id i exten A Objet ¢ A entre Harlan ui bat ah 10 Then cick bt, “Mobile no is Invalid") on then 2 Foxit 2. Fo email is valid") parosProntset! sethrrorttb2, pnt tnd Sub pnd 08 sebie No emai Moe No toad mi are preceded hy tho kayrord ByRef, VII, Resources required (Additional) IX. Precautions Save the program in specific directory / folder, 2. Follow safety practices, : X. Resources used (Additional) XI. Program Code: (Teacher must assign separate program stat A student) Write a Program using sub Procedure Meodua | Modale Submaine) Protea DIM a AB in e9ee% = 10 Proer cay : CONDE. Readline co End Sub Provide Bub Proc c) ment £0 group of 3. Parameterized sub procedures, Maharashtra state Board of Technical Education roa t } pe juestion: 's for reference. Teacher mi just design elated Questions ‘are sew sample a shievement of identified CO mu Prac! . ol. Nigter Below Sie ‘more such uestions $0 a5 ensure the acl iia ean ByVal & ByRef keyword in parameter passing of Sub jure. using recursion. (Space for answers) Mahar ashtra st tate Board of Technical Educati tion je Module! sub Main0) demo) Console. ReadLineQ) End Sub Sub demoQ Writel ine("Simple procedure") Console End Sub Sub Maing) Dim s As Int Dim y Asl Addition(s. y) Console ReadL ine) End Sul Sub Additions Val a As Integer. By Val b As Integer) Console ritel ineta © bY Ind sat am to calculate fibonacil) Console ReadLineO End Sub sci) Xs Inteee ys Intege? sub pimal pim n2 ni=t n=l Console: gop" nD End While 7 y nl ous sil the fibonacei sei of given number any ber usil nay number using sub procedure ered) Console Re ead Line end Sub gub revers©0 pimn.¢ mnie! Console: write EN er a numbers") crac e.ReadL ine) while rnd Console n\ 10 End While Mod 10 write) End Sub End Module estocal/Tempersty PIs porary Projects’ Consclear plicat. rcausers/ Administ ater ‘AppDat «Modifiers Private, Parameter Return Type: specifies the data type of the va ves required (Additional) vuil, Resoure Save the progt ‘allow safety [ assign separate program statement to group of 3-4 Program Code: (Teacher must XL student) © a program using simple funetion & parameterized function. Maharashira state Board of Technical Education = XIU Results (Output of the Program) Related Questions Nurer Below given are few sample questions for reference. Teacher more such questions so as to ensure the achievement of identified CO, 1. Function return a value is (True / False). 2. Find error in following code. Function FindMax(ByVal num! As Integer, ByVal num2 As Integer) As MUSE dei Dim result As Integer If (num! > num2) Then result = num Else result = num2 End If FindMax = result End sub (Space for answers) Name: Tejas Kadam Roll No: $3 Rateh o:S3 (©, write a program using simple function and parameterized funet function in Module Module! Sub Maing) Dim sum As Integer sum > Addblements(512, 720, 250, $67, Console WeiteLin2e°The sum is: 10)", sum) Console ReadL ine) 89) End Sub Function AddElements(ParamArray art As Integer()) As Int Dim sum As Integer = 0 ~ Dim i As Integer = 0 For Each i In arr sum +i Nest i Return sum End Funetion Jind Module Name: Fojats Radane Roll Noo 5 natch wo 84 Public Class Formt Private Property may AS MsgBo: viesdon usin) MagBoxReault Iftl. Pext > 2. Text Then Return (MsgBox(t1.Text)) Else Return (MsgBox(t2.Text)) end IP may = Msgox(tt Text) may = MsgBoxtt2.Text) End Punetion Sub maind) may = mtyinnum) Fnd Sub End Class: indewatepicetont (EP) f tat fi I | 7 Fe Module! + odule junction Recursive(y Val value As Integer Console, WriteL ine(’Recursive({0}. (11) 0 t f court Au Integer) As intexer ' value, count) count = count + 1 If value 100 Then Return value End If Rein Recursive(value * 2, count) End Function Sub Maing) 0 r= Recursive(5, county Dim count As Int Dim total As Inte; Console. WriteLine("Total = {0}", total) Console. WriteL inet "Count = {0}", count) Console.ReadLine() End Sub / ind Module J ota/Local/Temporary Projects/ConsoleApplicatl Pearse) Rrra rier tes ied unt = 6 ————___ Maharashtra state Board of Teck velopment using VI.Net (220M) End Class Sub main() Dim Object Av N End sub End Module Name_of Clinn() we of _clansoNew VIII. Resources required (Additional) ACN ORD ; LN AATEC MO SOL. oo Lah CRE CANAD. 1. Save the program in specific directory / folder 2. Follow safety practices. X. Resources used (Additional) Xi. Program Code: (Teacher must assign separate program statement to group fy i 4 student) Write program using the concept of class & object in VB.Net ‘ A a QU Application Development using VB.Net (22034) End Sub ‘End Module (Space for answers) ei debin: 2 —————— Maturashira state Board of Technical Education ve began i Ne ss patel poale stelle mip Main . pin AS New BUS) isn’ pim c AS yew COS) pm pisn Console eal ine) gd se piv se unetion DIDHNO AsB yrunetion gub Newt A e, Write! Integer As Integer) ine(p!) pend Class L a Class € rival sub Newel Console. End Sub End Class ph As Intezer As Intezer) pl) riteL.i Dota/Locel/ Temporary P 4 Projects/Con nol) ead Lil pend SU rad Maule class demo public C0130 fend Sub nd Class al/Teinporary P ProjeetslCons salehpph Pplcaion2 escent A destructor has the name Finalize and it can neither return @ value nar can it the any parameters, Destructor can be very useful for releasing resources before coming ut of the program like closing file, releasing memories, et story eannot be inherited or overloaded of Destructor ame lic sub New [Statement] End Sub Protected overrides sub Finalize [statement] End sub sub main) Dim Object! As Classname=New Classname() End sub vill. Precautions ‘ave the program in specific directory / folder. 2. Follow safety practices: XI. Program Code: (Teacher must assign separate program statement to group of 3- 4 student) Write a program to demonstrate the use of constructor & destructor Miatarashira tate Board of Technical Education [<= @ i ated Questions » Below given are few sample questions for reference. Te » Teacher must. design tlh vote: Beet gestions so as 10 Cvs eth ouch qe vi re the achie merind ‘qutpue ok following code. revement of Identified CO. jmports system.Console , ns ¢ Module! ‘sub MainO ‘Dim con As New Construct Dine owaeeO) 4 ReadO End Sub End Module enctical Rel nstructor ie AS Integer=4 Class CO} 0 ral x As Integer) Public Ag public Sub New(ByV: End Sub Public Function showAge( As Integer Return Age End Function End Class public . Find error in following code. imports System-Console Module Module! Sub MainQ Dim obj As New DestroyO End Sub End Module Public Class Destroy Protected Overrides Finalize Write("VB.NET") Read() End Sub End Class (Space for answers) Maharashtra slate Board of Technical Educatio ~ 1 Maharashtra sate Board of Technical Education = protected Overrides S Console. WriteLine( "for Console.ReadLine() End Sub destructor’ Mabara tra state Board of Technical Education 113 ate Board of Technical Education f ee ene jem Cunnale ia astute yy nyow entrant) ‘po hey k yu od eae eal q vip tinatiee 0 wore) mm ‘pavate | Av Double public Sub New) Connie Water “nwopape") Hlenpthelty Val few A» Doubley Pulte Subs Je ten tnd Sul Fuahie Function gett engin Av Dauble Rew 4 Vx tion fad) it Jeno Hew denn) 1 selenysht 0) Console Waite( "Length (0), L wet engtliy) Conyole Headley 4 Sub a a Huet Bol mn - | | Vapodatarioco Terneray tatc/Consclchephenin2/tin Dae) while Maple! Class Arca Private # As Double em By 1 temp As Doubley precautions ye Save the program in specifi 1, Savethe rae specific dinee 3 Fallow safety practices, Teclory / folder, resources used (Additional) Program Code: (Teache ssi jer must assign separate pr ORTAM sta tement to gro Ip of 3. 4 student) Write a program using concept of Inherit tance, ML Munshi stale Board of Technical Education m7 pa pevesnnent asi VB.Net (2206) Ra a public CostomerType As String rind Class (Space for answers) ap child class and base class Module! Class student Sub show0) 3 As Integer = 70 er = 00 que. stole public public Dim pin by As Inte ppm result As Double pimm c As Intezer Pansote-WriteLine( MR. Aniket Adavk ezatd 140 * 100 cesull = € WriteLine("resull i Console: & result) End Sub nd Class bie Class faculty inherits student public Sub discl) Console. Writel End Sub End Class Sub Main() Dim obj AS bj show() i disc Coste Re Line("Prof. A. S. Salavi") faculty = New faculty() ndLineQ) ier peiist Mauka ae Red or inheritans annie or sronle Module! Cis public ® eget = 10 As Int ecrvatuie oF X= Sub sho), iy sgole- Wate! pd Sub end C1ASS gab Naif) im obj As B ohistoO, 7 realex Rew BO console rend Sub Ld Medtle SreRSRRT RST RCS SE SISOS Rt RIE CECE SCS TSS SSS STS E SOO COTS Sees ee reese T ESSE S TSE Se GUI Application Development using VB.Net (22034) End Class Class €2 Inherits cl Shared Sub main Dim o As New 20) oi) End Sub Overrides Sub hi) console. writeline("New and Im} End Sub End Class | proved method hi") VIII. Resources required (Additional) IX. Precautions 7 1, Save the program in specific dit 2. Follow safety practices. rectory / folder. X. Resources used (Additional) XI. Program Code: (Teacher must assign separate program statement to group of 3- 4 student) : Write a program to implement the concept of method overloading & overriding Maharashtra state’Board of Technical Education 128 Maharashtra state Board of Technical Education ited Questions xm. Prectical Reta are few sample question Sor ref, more such questions 50 as t0 ensure the achievement op ene Nests Be le e, 1. Find output of following code. meet Imports System - Module Module! Class overload Dim r As Double Public Overloads Sub area(By Va) » Console. Write("Area of the ci Console. WriteLine(1 /3 3. End Sub Dim length As Integer Dim width As Integer Public Overloads Sub Console. Write(" Console. WriteL, End Sub End Class | Sub Maing) | Dimr As New overload”) rarea(3.1) t rarea(4, 5) t End Sub End Module | | | ircle :» 14 pa, retByVal length, J ; sera’ OF the Rectani PY Yl wid Implement windows application for employee g leta lS Using VetTiding (Space for answers) Console: End Sub nj Module w0) ReadLi {sub Show Spinet "Class OY) ine() _ Ch, As Double Overloads Sub Writetarea of the circle= *) ‘a(By Val 1) ouisole i eWriteLine(/3*3.1 * pepe sib ry tant A IE Ua auth AS Hnteger Pi Oveoads Sub *Fe0(By Val len ’ ‘Write(carea of the recta e's) Val width Console. ) Ceasole,WeiteLine(length * width) fend Sub Eni Class yodule Module! Sub Maing) Dim r As New overload rarea(3.1) rarca(l. S) Console Re a 7 xs Module dL inet) Jor As Ob pjeet. ¢ As F ventArys) Handles By 's Button Ctick Cliek(send sub Show Employes M playen name : Mrjonn tupay” 19 Inherits A prntic Ove sub Show) Listf engalary: 20000" End sub class Main) As pox! Test end sub) pins New AC) x.show) New YL show) BO End Sub pnd Class 1) Fort oll NO: pach $3 ring comcatine s Form! public CI pes Oho private Sub sguttonl_Click ich( sender att gatos! Test ler As Ob) ject. € A As EventArgs) 85) Handles But onl.Ch ick ‘Giri wae state Boa of Technical Bove 1, Save the program in specific directory / folder. 2. Follow safety practices. Resources used (Additional) / XI. Program Code: 4 student) Sat t0 group Write any program using Exception handling, * eacher must assign separate program statem M: faharashtra state Board of Technical Education " ih " ue As I se As Integer / Integer P Console. Wri otine("Hi") Ber, Pars hex As Exteption cate \Writel.ine(ex. Mes Console: nd Try console tend Sub ne As SUiNB no AS Integer orl ReadL inet speenter ie mane intE:xception pion cael, &X) & si_name) Line eerie roll no" & roll_n9) FoundE: xeepion sta/Local/ Temporary Projects/Consolepplicat (oe pplicat.. (or) versio. APPD. ee Vitae state Board of Technical Edueatior tion 143 using VB.Net (22034) pim Con as SalConnection Cn ee DueNew _ S@'Comnection(serve database=s dent") cow emd As OleDbCommand Binf-New OleDbCommand jim emd As SqiCommand peeNew SqiCommand('select * from student’ co , con) eet * from student’, con + con) yaReade? papi dr? preemd ExecuteReader pim dr As SqlDataReader preemd.ExecuteReader As OleDbDataReader Set pataSer dataset As New DataSet) Da.fill(dataset, “tablel”) patnGri GridView | DataSource = ds Tables(0) esourees required (Additional) Precautions a Preeiye te pga in specific directory / folder. 2 aewrodtety practices. Resources used (Additional) dog Gu hea.'SG sche.ng SER ae 1.S..NALS.M.. O AGB | 9) to AD.0...2.0.12. Program Code: (Teacher must assign separate program statement to group of 3-4 student) Write a program using ADO.Net to connect to the database, x “eas Board of Fede Es ‘ate Board of Technical Education aaa SE 17 we “exits sate Board of Technical Education pain) njow oleDbConnection( “Provider=Microso; : a As New rosoft ACE. ove 5 aC Bs Me rator\DeSKtOP\Mpriata\Dtabeslaeeie} o Oas civwsers ureeiN 09290) ey oLeobCommand("select * from Table1", cin) pin cd“ eppoataneader ° ole! ain de executeneader ead ore wrateLine(s(@)) consore yriteLine(d(1)) ports systen.Data.O1eD> ports System.Data public Class Form Me ies cib Forml_Load(sender As Object, e As EventArgs) Handles MyBase.Load ‘ais cin As New OleDbConnection("Provider=Microsoft .ACE OLEOB.12.0;Oata \Users \Adainistrator\Desktop\gadprinta\Databasel .accdb") cin. Open() Din end As New OleDbConmand("select * from Table1", cin) Din d As OleDbDataReader 4 = end, ExecuteReader ubile d.Read TextBox1. Text TextBox2. Text (0) aa) End While Console.feadLine() 4.close() se in specific directory / folder. Ix. Precal Pave the Prose 2. Fellow safety Practices x, Resourees used (Additional) Co XI. Program Code: 4 student) Write a program using data adapter to connect t ‘0 the dat: ‘abase, ay (Teacher must assi i ian Separate progra Statemy lent to Maharashe ra sta te Board of Technical Ed lucation 7 fh fe a Der Ni a calor! VB.Net (22034) tii ee oe y gesults (OmtPHE of the Program) sh alll luted Questions Note: Below given are Sew sample questions for More such questions $0 as fo ensure the achieve reference. Teacher morrind rot in following code ent of identified CO, Di ‘Ay SqlDataAdapter = New SqlDataA dapter( ‘on) ptert"select * from C. Uustomers*, connection: thm ds As DataSet = New DataSet Fill(ds) Write a data adapter syntax using a MS-Ac -Access code with a stud lent table. practical Rel must design e for answers) Maiwashia sate Board of Tech ira ate Board of Technical Education a adapter to connect tothe database, m using Jt gaone t= ou ting on the slected ebject er, cus Nouorecinsel Baia = SSCS 157 © DELETE ea SqlCommand("DELETE FROM Employee wh, con); + A Command object exposes several execute methods like: 1, ExecuteScaler() Executes the query, and returns the first column of the fj returned by the query. Extra columns or dr = cmd. ExecuteScaler(); ; 2. ExecuteReaderQ) Brg Display all columns and all rows at client-side environment, can say that they display datatables client-side, +H he dr = cmd.ExecuteReader(); We 3. ExecuteNonQuery() Something is done by the database but dr = cmd. ExecuteNonQuery(); GUI Application Development using VB.Net (22034) ere Emp tan + a, SL row in ql TOWS arg CH gy nothing is returned by the data ae, VIII. Resources required (Additional) IX, Precautions 1. Save the program in specific directory / folder, 2. Follow safety practices. xX. Resources used (Additional) Xi. Maharashtra state Board of Techaical Education . tions iI Related Quest le ce are fem sample auestions far peyey tote osrmctons 50 a8 to ensure the Achievemeng iden hy ia iver ed Co” hy xi May 1. Write syntax of command object execute method, (Space for answ ers) nical Education sign Development sig VINE (22030) { fe As) 2crgs) HandLestyBase. Load = asobject, ¢ Astvancargs) Handles B jesserder s buttont. Click , 0 eg tf 12, 8:0ALNSOUFCeAE: Users USERNDesktoplwP\databy se aces" nnstring, i iame] {RO1T]) Values? ?,?)° peo igste, a¥Co0) va "Cetnrol iment”, CType(lextoox1.text, Strin | | ae CNA + ‘Clype(TextBox2. Fext, Steing))) oll] | vera Copal", Ctypet textord test, Stele)? fender Asovjects © AS ) Handles Button2.CLick ton cick(4 alinant 2° 6 Text@oxd. Text +> J sivatesoh 60 Fas encolieents Mare) feos tol anere Ene 2 se eal, nycon) Sass } seater gg « end Ea rEREIET sser-Read() vevtnons teat = ayneaen( O02) ) rerton Feat = ayteader (8 1S} rent Bons ent = aymeager ("211") aonctose() Gen en As ex.message) | 163 ‘a sate Board of Technical Education initicaion Develooment using VB.Net £22034) GIN sent ~ Qo vet 8 ro | 2 Foomt MW Maharasie "state Board of Technical Education VIII. Resources required (Additional) 1, Save the program in specific directory? folder, 2. Follow safety practices. X. Resources used (Additional) XI. Program Code: (Teacher must assi n se student) Bn SeParate program state ry mer Write a program using data binding in VB.Net OR, pe ee Maharashtra state Board of Technical Education evelopment using VB.Net (2 gation DCE woe ie | a t results (Output of the Program) a th . oe ; d Questions ctical Relates hee . Weer Below giten are JO sample questions foray ste te: ey quan so 4s f0 ensure the achievement orice U8 design morte a syntax of simple binding for ext bor. co, 1 Mite a syntax of complex binding for comb box. aa (Space for answer) "Sse se Brad of Technical Educaioa ve am Mearns oe ate Board of Te 7 joar of Tech nical Ed jucati ion m1 _. ng VB.Net (22034) dditional) VIE, Resources required (A IX xX. XI. Program Code: student) Maharashtra state Board of Te s te Be i f Technical Education ~~ ‘ A) ast ’ ausetnen it yenaee ay get lal value Requires af coettgvon 8m ° i ase)” FalsetPeh say character value Required!!! isi feet pagvon nyastnane? ns = raseThen ; cnet n) eton? OMY caracter value Required! !!", elf set es _ a sethen 5011. ratseTicerger Vue required! !!", o ¢ into empinfo(Id,Fllane, ninser' wane. Text Gers" Designation. Text & x05 | oe en onquery 1 | Fe ae query’ f 3 ‘then "| a uecess fully saved") mF yi? sgnoxc "record r0 id. focus) | ed Not saved jor seritical | ast snsqnoxrnecord , ) nat con. chose) ten AF pox (ex Message? error”) SarcioseO) catty sub I aga tson cneerteO wry nner c( 18 108) eT tlie 7 fempata(current®oH) ya. rocus() sewueafals® toatl teh 0 5 fastey fetureteve tndrunc ion vecmce ene data in sary, feeTae mentee ose or nat ister netion checksal@ry iy Wisumeric(Salary-Text) + Falserien aapata (current ROH) Salary. FOCUS feturnr alse ¥ ig att teh ox As Use, HseBoxst stem abies, 8WAL © AS Systen Critical) Hsgaoxsty poxstyle.Critical) 1", sgboxStyle.Critical) ».Critical) ) Nondies Le.Critical ) e.critical) exit sub Lave Designation, Salary) values("& 'g Salary.Text &* )", Con) Exit sub Pees OUL AY XIV. hoturateue Endtunction PrivateFunction Checkrtane() wy IF Hane Text Trim() * “*Or Validatestp Tre (Fane Show0ata( CurrentRow) B(FHane. Flame. Focus() feturnralse endif Catch ex As Endiry Returntrue EndFunction 2pton PrivateFunction Try Tf Wane Text Teim() = =9p Validatestrs ne (Un, ShowataccurrentRow) “8UNane. Tex (Wane. Focus() CheckiName() Returntalse endif Catch ex as: Endtry Returntrue EndFunction Falsethen Privaterunction CheckDesignation() Try TF Designation.texttrim() = **op Validatestein Showoata( CurrentRow) *(OeSi gration. text) « fa Designation. Focus) She, ReturnFalse Enare Catch ex as Endtey Returatrue EndFunction "To check the string for auke pin gtefunct ion Val idatestring( Byval str) Din t Astnteger Dim ch aschas ise While i < Str.tengen(y ch = Ste.chars(iy Tf TsNumeric(ch) = Truethen Returnt alse Ena feed Endkh eReturnteue EndFunet ton Privaterunction Istdexist () Dim Str, Stet Asstring Dim fF asinteper Str Id text Lables(“2goiain’ Vows. Count 1 currentRew) ¢.Tables{"enzinfo") Rows ee } Rows (Currents, pst. Tables(“escinfo") Rows (Curee de te) gt Tadles(“2e0info") Rous (ene RM Name” Geren Cite) ~ 5 (Curr, “8 07} Roy ur eNtROW) (“Des ows (Currenttany(satsere REIN") A update C14 a ) Mande ay) = FalseThen agoax(' 19: Inceger value required?! In Critical) sonotane() = ranseien : aracter value Required!!! rie Poiana: Only a 18 anya)» FalseThen Tomtnesemeeren drones cre etre rr, te it ae rteoesignation() = Falserhen meishi(spesignation? Only Character valve Reqitredt |!" estat | Wondsalary() — Falsethen eee eee een, onan t = Wndate eapinfa sat tunes" foment "toe “8 ane. teat Pee mee Oca aew Tent B ld.len & Crmd 2 RON mc 10860) pee lear() wt Yok sos ot : oad titnsty, “eepsara’y : ” omy Magnox( "Undated Successful Ly y Cate me AS emOXCeX-MESSIEE E.R Ox, Sotsy tnatry Enasud atesub Delete_Click(BYVal Senden js S¥Stem.o),,, f privates ~ det, Hf checktd( Msglox(“Integer value requiney "y exit sub endif fo Iry Con.open() Ce Fem LeOAComANd“Eelete Fyn Crd. ExecutenonQuery() oMBANFO when Ost-Clean() Dad = Tose etek Setecg 7 Dad.FAl1(Dst, “empinfo") Om ening MseBox("Record Deletag Successfurzyny Hf CurrentRow > @ Then CurrentRow -= 1 Showbata(Current Row) endif ShowDat.a(CucrentRow) Con. Close() Cate ex ASS. op sy MsgBox(“Could NOY delete record), MSBBox(ex.Message gv, ng &X.Sourcey Con.Close() - Endiey Endsub pe parch 9 record in database seaenaut Search CLick(WyVal sender AS System Search. Click : ’ * Byval 6 Dim Searchid Asinteger Dim i, ) astnteger 1f Checkta() « Falsethen MSEBOK(" Integer value requi nag ) Exit sun tndie ny Searchid = 1d, text J Ost _Tables¢ empinto™) Rows Count 1 1206 ‘ranarashura state Board ot technical Wducation 1 : crear) ROW CT2) Then raph espat at) — , wnt teoeetro) om 47,"B ex-Source) | .mess2Be 1 gon t, Byval e i currentRow -* 1 | Soxpata(current ow) i sgbox(™ : B sender As System. Laet_click (2yval 3") -Rows-count = 2 Carertéow = Ost. Tables ("2724 Staoata(CurrentRow) ntoni_Click(Byval sender AS S¥5t se() Byval e As Systes. | Byval e AS Systes. | gyval e As Systes A aoe iS System. ventargs) Handles Farst.click | gender As Systes.ooject, Byval e AS Systes seepinfo")-Rows-Count - 1 Then es(iord As Reached!*, “380<5 2. €xclezation) ) Handles Exclasation) js) Handles Last.Click ) Handles sye tom, 1 senitont A8 9 { isen 7 Update Develop An Executal ble File and De Ploy siguific: ico! eet setting UP & utable file to order g ye iwation, You create another type of pra led Lot plication. ¥ a Cr type of project depia wat two files named Setup.exe ect call trent, 4 isl P-eXE and Setupmysi, MY inky \ progam Outcomes (POS) val sledge: Apply Compute ge gine knowledge: Apply Computer Programmi hoy tet ‘group related problems, BamININg know 4y sly oop ee: Pla 5 ane the e mpriments and practice: Plan to perform experiments a Md " eerie he compte Broup relied problem Practices 4 ge yp rygincorn Apply relevant Computer programming 1 / a ga erst of the limitations, 8 / technuitogies ang twos ion: Communicate effectively in oral and written ° cn form, etoncy and Practical Skills a comes expects (0 develop the following skills in the student ww re VB.NET programs to solve computer group related prolile pert a program for creating a executable file and deploy it ™ |B ympile(Debug/Save the ‘VB.NET’ program. sevant Course Outcomes W ae ata Binding in GUI Application. prxtical Outeomme . v. utable file of VB.Net Application and deploy it to other computer, ylevant Affective domain related Outcome(s) a |, Follow safety measures )) follow ethical practices. Minimum Theoretical Background he process of setting up executable file to order system is called deployment. This dn ase the term Setup project co refer 103 specific type of project supported by Visual Studio. The Setup project bundles all of the elements of an application so that it canbe distributed to another computer, * vie end user's computer is called the target computer. The end user typically runs theinller (ihe file named Setup.exe) that you created 0 install your application on their computer. Vill, Resources required (Additional) 0. unig Sek TW isda studies 2.0): time Sie Boar mi 1 Technical Education GUL Application Development using VB.Net 22034) IX. Precautions 1. Save the program i Maharashtra state Board of Technical Education sos sine VB Net 22034) the Program) output of al Related Questions ; Pott . sn Cae een, acne of ied such 0 ensure the achiever rence. Teacher must desig por ype of Setup files vement af identified CO. design 3 Write steps '0 create setup file. (Space for answers) XIV. Exercise (Teacher must ass; 1. Create a MySetup.exe fil Registration windows appl 2. Deploy college admission Separate exercise le using student regi ication) form, Broup of 3-4 student) stration project (Create Sue (Space for answers) Maharashtra state Board of Technical Education using VB.Net (22034) 1 Developmen ut applic: XIV. Exercise (Teacher must assign separate exercise to group of 3-4 student) 1, Create a MySetup.exe file using student Tegistration project (Create § Registration windows application) 2. Deploy college admission form, (Space for answers) Maharashtra state Board of Technical Education Maharasht XIV, @SumitBiranje

You might also like