1.) To Find, Whether Entered Number Is Odd or Even
1) The document contains code for creating various VB.NET applications including: a) an odd/even number checker, b) a basic form validator, c) list operations, and d) a basic calculator.
2) The code handles button clicks to perform operations like adding/removing items from a list, validating form fields, and performing basic math functions like addition, subtraction etc.
3) The outputs generated by running the applications are also described like displaying if a number is odd/even or showing results of calculations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
64 views7 pages
1.) To Find, Whether Entered Number Is Odd or Even
1) The document contains code for creating various VB.NET applications including: a) an odd/even number checker, b) a basic form validator, c) list operations, and d) a basic calculator.
2) The code handles button clicks to perform operations like adding/removing items from a list, validating form fields, and performing basic math functions like addition, subtraction etc.
3) The outputs generated by running the applications are also described like displaying if a number is odd/even or showing results of calculations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7
1.
)To find, whether Entered Number is Odd or Even
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1.Click %im & As 'nte"er & ( C'nt()e&tBo&1.)e&t# '* & +od , ( - ).en )e&tBo&,.)e&t ( /0umber is !ven/ !lse )e&tBo&,.)e&t ( /0umber is Odd/ !nd '* !nd Sub
!nd Class The following output is shown 1)Number is Even 2)Number is Odd 2.) To Create A Bio Data Form Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1.Click %im & y 1 As 'nte"er '* )e&tBo&1.)e&t ( // ).en 2abel13.)e&t ( /0ame Cannot be !m4ty5/ & ( - !lse 2abel13.)e&t ( // & ( 1 !nd '* '* )e&tBo&,.)e&t ( // Or )e&tBo&6.)e&t ( // ).en 2abel17.)e&t ( /Field cannot be !m4ty5/ y ( - !lse 2abel17.)e&t ( // y ( 1 !nd '* '* )e&tBo&8.)e&t ( // Or 9ic.)e&tBo&1.)e&t ( // ).en 2abel1:.)e&t ( /Field cannot be !m4ty5/ 1 ( - !lse 2abel1:.)e&t ( // 1 ( 1 !nd '* '* & And y And 1 ( 1 ).en 2abel,-.)e&t ( /FO9+ S;B+'))!%....Success55/ !lse 2abel1<.)e&t ( /Form 'ncom4lete55/ !nd '* !nd Sub !nd Class The following output is shown when the Submit Button is clicked and all the personal etails fields are kept blank! !.)To "erform #arious O$erations on %istBo& Public Class Form1 Private Sub Button,_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button,.Click 2istBo&1.'tems.Add(/=amia/# 2istBo&1.'tems.Add(/+illia/# 2istBo&1.'tems.Add(/'slamia/# !nd Sub Private Sub Button>_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button>.Click )e&tBo&>.)e&t ( 2istBo&1.'tems.Count !nd Sub Private Sub Button6_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button6.Click 2istBo&1.'tems.Clear(# )e&tBo&>.Clear(# !nd Sub Private Sub Button8_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button8.Click %im y As 'nte"er y ( C'nt()e&tBo&6.)e&t# ? 1 '* y @ 2istBo&1.'tems.Count ).en 2istBo&1.'tems.9emoveAt(y# !nd '* !nd Sub Private Sub Button3_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button3.Click %im & As 'nte"er & ( C'nt()e&tBo&3.)e&t# ? 1 2istBo&1.'tems.'nsert(& )e&tBo&8.)e&t# !nd Sub !nd Class The following output is shown when "#dd efault $alue" Button pressed and the "%ount" Button is pressed! The following output is shown when &Okhla' is (nserted at )osition &2' using the "(nsert" button! The following output is shown when $alue at )osition * is +emoved! Thus it removes &,illia' which was at )osition * '.)To (m$)ement a Basi* Ca)*u)ator with basi* fun*tions Public Class Form1 %im & y 1 res As %ecimal Private Sub Button1_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1.Click )e&tBo&1.A44end)e&t(1# !nd Sub Private Sub Button,_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button,.Click )e&tBo&1.A44end)e&t(,# !nd Sub Private Sub Button>_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button>.Click )e&tBo&1.A44end)e&t(># !nd Sub Private Sub Button6_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button6.Click )e&tBo&1.A44end)e&t(6# !nd Sub Private Sub Button8_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button8.Click )e&tBo&1.A44end)e&t(8# !nd Sub Private Sub Button3_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button3.Click )e&tBo&1.A44end)e&t(3# !nd Sub Private Sub Button7_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button7.Click )e&tBo&1.A44end)e&t(7# !nd Sub Private Sub Button:_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button:.Click )e&tBo&1.A44end)e&t(:# !nd Sub Private Sub Button<_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button<.Click )e&tBo&1.A44end)e&t(<# !nd Sub Private Sub Button1-_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1-.Click )e&tBo&1.A44end)e&t(-# !nd Sub Private Sub Button18_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button18.Click y ( C%ec()e&tBo&1.)e&t# '* 9adioButton1.C.ecked ( )rue ).en res ( & A y )e&tBo&1.)e&t ( res !lse'* 9adioButton,.C.ecked ( )rue ).en res ( & ? y )e&tBo&1.)e&t ( res !lse'* 9adioButton>.C.ecked ( )rue ).en res ( & B y )e&tBo&1.)e&t ( res !lse'* 9adioButton6.C.ecked ( )rue ).en )ry res ( & C y )e&tBo&1.)e&t ( res Catc. e& As !&ce4tion )e&tBo&1.)e&t ( /Cannot %ivide By Dero5/ !nd )ry
!nd '* !nd Sub Private Sub Button11_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button11.Click & ( C%ec()e&tBo&1.)e&t# )e&tBo&1.Clear(# 9adioButton1.C.ecked ( )rue )e&tBo&1.Focus(# !nd Sub Private Sub Button1,_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1,.Click & ( C%ec()e&tBo&1.)e&t# )e&tBo&1.Clear(# 9adioButton,.C.ecked ( )rue )e&tBo&1.Focus(# !nd Sub Private Sub Button1>_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1>.Click & ( C%ec()e&tBo&1.)e&t# )e&tBo&1.Clear(# 9adioButton>.C.ecked ( )rue )e&tBo&1.Focus(# !nd Sub Private Sub Button16_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button16.Click & ( C%ec()e&tBo&1.)e&t# )e&tBo&1.Clear(# 9adioButton6.C.ecked ( )rue )e&tBo&1.Focus(# !nd Sub Private Sub Button13_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button13.Click )e&tBo&1.Clear(# 9adioButton1.C.ecked ( False 9adioButton,.C.ecked ( False 9adioButton>.C.ecked ( False 9adioButton6.C.ecked ( False !nd Sub
Private Sub Button17_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button17.Click )e&tBo&1.A44end)e&t(/./# !nd Sub Private Sub Button1:_Click(ByVal sender As System.Object ByVal e As System.!ventAr"s# $andles Button1:.Click & ( )e&tBo&1.)e&t )e&tBo&1.)e&t ( +at..SErt(&# !nd Sub !nd Class The following output is shown when - is multiplied b. * The following output is shown when an. number is divided b. /ero0
AI-powered Excel Ludo: Complete Code and Easy Instructions to Create a Fully Functional, Advanced and AI-powered Ludo Game in Microsoft Excel using VBA