SlideShare a Scribd company logo
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
GUI
PROGRAMMING
LAB
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-1
Design & identify card containing information regarding students such as Name,Roll
No.,Address,Class Studying,Date Of Birth,Blood Group,Phone No.,etc .Add a Exit
Button.
Property Setting:
Property of Name label box
Name=label1
Caption=Name
Property of Roll No label box
Name=label2
Caption= Roll No
Property of Address label box
Name=label3
Caption= Address
Property of Class label box
Name=label4
Caption= Class
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Property of Date Of Birth label box
Name=label5
Caption= Date Of Birth
Property of Blood Group label box
Name=label6
Caption= Blood Group
Property of Phone No label box
Name=label7
Caption= Phone No
Property of Text box
Name=Text1
Caption=""
Property of Text box
Name=Text2
Caption=""
Property of Text box
Name=Text3
Caption=""
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Property of Text box
Name=Text4
Caption=""
Property of Text box
Name=Text5
Caption=""
Property of Text box
Name=Text6
Caption=""
Property of Text box
Name=Text7
Caption=""
Property of Exit command button
Name=Command1
Caption=Exit
Source Code:
Private Sub cmd_Exit_Click()
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Unload Me
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-2
Develop an application to calculate Interest. It should accept rate of interest, period
for calculation of interest (years), amount on which interest is to be calculated (Rs.).
After clicking Compute Investment amount (Principal + Interest) should be
displayed in separate text box. Add Exit button, Proper text box controls and labels
to be used. Provide 2 options- Simple, Compound interest. Provide Picture and
Radio Button control.
Property Setting:
Property of Principal label box
Name=label1
Caption= Principal
Property of Rate label box
Name=label1
Caption= Rate
Property of Time label box
Name=label1
Caption= Time
Property of Result label box
Name=label1
Caption= Result
Property of Text box
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Name=Text1
Caption=""
Property of Text box
Name=Text2
Caption=""
Property of Text box
Name=Text3
Caption=""
Property of Text box
Name=Text4
Caption=""
Property of SI command button
Name=Command1
Caption=SI
Property of CI command button
Name=Command2
Caption=CI
Property of clear command button
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Name=Command3
Caption=clear
Property of Exit command button
Name=Command4
Caption=Exit
Source Code:
Private Sub cmd_SI_Click()
Text4.text=((Text1.text*Text2.text*Text3.text)/100)
End Sub
Private Sub cmd_CI_Click()
Text4.text=(Text1.text*(1+(Text2.text/100))^Text3.text)
End Sub
Private Sub cmd_Clear_Click()
Text1.text=””
Text2.text=””
Text3.text=””
Text4.text=””
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Private Sub cmd_Exit_Click()
Unload Me
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-3
Design a Simple Calculator to implement addition, subtraction, multiplication, division,
remainder operations.
Property Setting:
Property of enter first number label box
Name=label1
Caption= enter first number
Property of enter second number label box
Name=label1
Caption= enter second number
Property of Result label box
Name=label1
Caption= Result
Property of Text box
Name=Text1
Caption=""
Property of Text box
Name=Text2
Caption=""
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Property of Text box
Name=Text3
Caption=""
Property of Addition command button
Name=Command1
Caption= Addition
Property of Subtraction command button
Name=Command2
Caption= Subtraction
Property of Multiply command button
Name=Command3
Caption= Multiply
Property of Division command button
Name=Command4
Caption= Division
Property of Clear command button
Name=Command5
Caption= Clear
Source Code:
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Private Sub cmd_Addition_Click()
Text3.text=(Text1.text+Text2.text)
End Sub
Private Sub cmd_Subtraction_Click()
Text3.text=(Text1.text-Text2.text)
End Sub
Private Sub cmd_Multiply_Click()
Text3.text=(Text1.text*Text2.text)
End Sub
Private Sub cmd_Division_Click()
Text3.text=(Text1.text/Text2.text)
End Sub
Private Sub cmd_Clear_Click()
Unload Me
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-4
Create a form using check box and option box to giveeffect for fonts such as bold, italic,
underline strike through respectively for the text entered in the rich text box.Program to
display message in message box.
Property Setting:
Property of Print command button
Name=Command1
Caption=Print
Source Code:
Private Sub cmd_Print_Click()
Print "Hello"
MsgBox "Welcome To the World of Visual Basic"
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-5
Demonstrate use of Date Environment, add tables and queries, place fields on form,
report etc..Design a program to calculate Factorial.
Property Setting:
Property of enter number label box
Name=label1
Caption= enter number
Property of Text box
Name=Text1
Caption=""
Property of Calculate command button
Name=Command1
Caption= Calculate
Source Code:
Private Sub cmd_Calculate_Click()
Dim n As Integer, f As Double, I As Integer
f = 1
n = Val(Text1.Text)
If n > 170 Then
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
MsgBox "Buffer Overflow!"
Text1.Text = ""
Text1.SetFocus
Else
For I = 1 To n
f = f * I
Next I
MsgBox "Factorial of " & n & " is " & f
Text1.Text = ""
Text1.SetFocus
End If
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-6
Design a program to display regional languages of different states in India. Take many
names of status of India in one listbox control and other text box control should display
their languages e. g. Maharashtra _ Marathi etc.
Property Setting:
Property of List box
Name=List1
List= Maharashtra
Chhattisgarh
Punjab
Andhra Pradesh
Kerala
MP
Property of Text box
Name=Text1
Caption=""
Property of Show Language command button
Name=Command1
Caption= Show Language
Source Code:
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Private Sub cmd_Show Language_Click()
If List1.Text = "Maharashtra" Then
Text1.Text = "Marathi"
ElseIf List1.Text = "Chhattisgarh" Then
Text1.Text = "Chhattisgarhi"
ElseIf List1.Text = "Punjab" Then
Text1.Text = "Punjabi"
ElseIf List1.Text = "Andhra Pradesh" Then
Text1.Text = "Telugu"
ElseIf List1.Text = "Kerala" Then
Text1.Text = "Tamil"
ElseIf List1.Text = "MP" Then
Text1.Text = "Hindi"
End If
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-7
Design a program to display regional languages of different states in India. Take many
names of status of India in one list .box control and other text box control should display
their languages e. g. Maharashtra _ Marathi etc.Program for Language selector.
Private Sub Command1_Click()
If List1.Text = "Maharashtra" Then
Text1.Text = "Marathi"
ElseIf List1.Text = "Chhattisgarh" Then
Text1.Text = "Chhattisgarhi"
ElseIf List1.Text = "Punjab" Then
Text1.Text = "Punjabi"
ElseIf List1.Text = "Andhra Pradesh" Then
Text1.Text = "Telugu"
ElseIf List1.Text = "Kerala" Then
Text1.Text = "Tamil"
ElseIf List1.Text = "MP" Then
Text1.Text = "Hindi"
End If
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
EXPERIMENT NO-8
Create a Simple NotE pad application, which contains Menus, Rich Text Box, Common
Dialog box, formatted text using Toolbar, and Replace text, Windows (Tile / Cascade),
Status bar and scroll bar Program to draw a menu .
Private Sub mnuAddProject_Click()
Print "Another Project Added!"
End Sub
Private Sub mnuCopy_Click()
Print "Content Ready To Paste!"
End Sub
Private Sub mnuCut_Click()
Print "Content Ready To Paste!"
End Sub
Private Sub mnuDelete_Click()
Print "Deleted!"
End Sub
Private Sub mnuExit_Click()
End
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Private Sub mnuNewProject_Click()
Print "New Project Added!"
End Sub
Private Sub mnuOpenProject_Click()
Print "Existing Project Opened!"
End Sub
Private Sub mnuPaste_Click()
Print "Content Copied!"
End Sub
Private Sub mnuRedo_Click()
Print "Last Action Repeated!"
End Sub
Private Sub mnuRemoveProject_Click()
Print "Current Project Removed!"
End Sub
Private Sub mnuReset_Click()
Me.Cls
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
Private Sub mnuSaveProject_Click()
Print "Project Saved!"
End Sub
Private Sub mnuSaveProjectAs_Click()
Print "Project Saved With Different Name!"
End Sub
Private Sub mnuUndo_Click()
Print "Returned to Previous State!"
End Sub
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha
SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY,
NEW RAIPUR(C.G.)
CSE/4th
/GUI Lab/PreparedbyVivekKumarSinha

More Related Content

What's hot

introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technologyvikram singh
 
Advanced Web Development
Advanced Web DevelopmentAdvanced Web Development
Advanced Web Development
Robert J. Stein
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
Bala Narayanan
 
ASP.NET 10 - Data Controls
ASP.NET 10 - Data ControlsASP.NET 10 - Data Controls
ASP.NET 10 - Data Controls
Randy Connolly
 
PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
Nisa Soomro
 
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by StepBootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap Creative
 
Unit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascriptUnit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascript
zahid7578
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScript
Edureka!
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
Vikas Jagtap
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
priya Nithya
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
Roshith S Pai
 
Databases in Android Application
Databases in Android ApplicationDatabases in Android Application
Databases in Android Application
Mark Lester Navarro
 
Web Technology Lab files with practical
Web Technology Lab  files with practicalWeb Technology Lab  files with practical
Web Technology Lab files with practical
Nitesh Dubey
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Russ Weakley
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first courseVlad Posea
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Veerabadra Badra
 
Visula C# Programming Lecture 1
Visula C# Programming Lecture 1Visula C# Programming Lecture 1
Visula C# Programming Lecture 1
Abou Bakr Ashraf
 

What's hot (20)

Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
Advanced Web Development
Advanced Web DevelopmentAdvanced Web Development
Advanced Web Development
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
ASP.NET 10 - Data Controls
ASP.NET 10 - Data ControlsASP.NET 10 - Data Controls
ASP.NET 10 - Data Controls
 
PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
 
Js ppt
Js pptJs ppt
Js ppt
 
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by StepBootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
 
Unit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascriptUnit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascript
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScript
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
Databases in Android Application
Databases in Android ApplicationDatabases in Android Application
Databases in Android Application
 
Web Technology Lab files with practical
Web Technology Lab  files with practicalWeb Technology Lab  files with practical
Web Technology Lab files with practical
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first course
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Visula C# Programming Lecture 1
Visula C# Programming Lecture 1Visula C# Programming Lecture 1
Visula C# Programming Lecture 1
 

Viewers also liked

Network security Lab manual
Network security Lab manual Network security Lab manual
Network security Lab manual
Vivek Kumar Sinha
 
Main ds manual
Main ds manualMain ds manual
Main ds manual
Vivek Kumar Sinha
 
Unit Testing on Android - Droidcon Berlin 2015
Unit Testing on Android - Droidcon Berlin 2015Unit Testing on Android - Droidcon Berlin 2015
Unit Testing on Android - Droidcon Berlin 2015
Buşra Deniz, CSM
 
Computer applications in civil engineering lab
Computer applications in civil engineering labComputer applications in civil engineering lab
Computer applications in civil engineering lab
Vivek Kumar Sinha
 
Lab manual asp.net
Lab manual asp.netLab manual asp.net
Lab manual asp.net
Vivek Kumar Sinha
 
Company Profile - Compressed
Company Profile - CompressedCompany Profile - Compressed
Company Profile - CompressedSolly Moeng - APR
 
Mech nacp lab
Mech nacp labMech nacp lab
Mech nacp lab
Vivek Kumar Sinha
 
Teks ekposisi
Teks ekposisiTeks ekposisi
Teks ekposisi
BERBUDIANTO
 
Cn lab manual
Cn lab manualCn lab manual
Cn lab manual
Vivek Kumar Sinha
 
Oops lab manual
Oops lab manualOops lab manual
Oops lab manual
Vivek Kumar Sinha
 
Java final lab
Java final labJava final lab
Java final lab
Vivek Kumar Sinha
 
Softwareenggineering lab manual
Softwareenggineering lab manualSoftwareenggineering lab manual
Softwareenggineering lab manual
Vivek Kumar Sinha
 
Computer hardware and simulation lab manual
Computer  hardware and simulation lab manualComputer  hardware and simulation lab manual
Computer hardware and simulation lab manual
Vivek Kumar Sinha
 
Eurest Breakfast White Paper
Eurest Breakfast White PaperEurest Breakfast White Paper
Eurest Breakfast White Paper
Gaurang Patel
 
WebRTC on Mobile
WebRTC on MobileWebRTC on Mobile
WebRTC on Mobile
Buşra Deniz, CSM
 
Graphics practical lab manual
Graphics practical lab manualGraphics practical lab manual
Graphics practical lab manual
Vivek Kumar Sinha
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
Vivek Kumar Sinha
 

Viewers also liked (18)

Network security Lab manual
Network security Lab manual Network security Lab manual
Network security Lab manual
 
Main ds manual
Main ds manualMain ds manual
Main ds manual
 
Unit Testing on Android - Droidcon Berlin 2015
Unit Testing on Android - Droidcon Berlin 2015Unit Testing on Android - Droidcon Berlin 2015
Unit Testing on Android - Droidcon Berlin 2015
 
Computer applications in civil engineering lab
Computer applications in civil engineering labComputer applications in civil engineering lab
Computer applications in civil engineering lab
 
Lab manual asp.net
Lab manual asp.netLab manual asp.net
Lab manual asp.net
 
Company Profile - Compressed
Company Profile - CompressedCompany Profile - Compressed
Company Profile - Compressed
 
Mech nacp lab
Mech nacp labMech nacp lab
Mech nacp lab
 
Teks ekposisi
Teks ekposisiTeks ekposisi
Teks ekposisi
 
Cn lab manual
Cn lab manualCn lab manual
Cn lab manual
 
Oops lab manual
Oops lab manualOops lab manual
Oops lab manual
 
Java final lab
Java final labJava final lab
Java final lab
 
Softwareenggineering lab manual
Softwareenggineering lab manualSoftwareenggineering lab manual
Softwareenggineering lab manual
 
Computer hardware and simulation lab manual
Computer  hardware and simulation lab manualComputer  hardware and simulation lab manual
Computer hardware and simulation lab manual
 
Eurest Breakfast White Paper
Eurest Breakfast White PaperEurest Breakfast White Paper
Eurest Breakfast White Paper
 
WebRTC on Mobile
WebRTC on MobileWebRTC on Mobile
WebRTC on Mobile
 
Graphics practical lab manual
Graphics practical lab manualGraphics practical lab manual
Graphics practical lab manual
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
 
Search engines
Search enginesSearch engines
Search engines
 

Similar to Graphics User Interface Lab Manual

Unix lab
Unix labUnix lab
Sql Patterns
Sql PatternsSql Patterns
Sql Patternsphanleson
 
4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf
amitbhachne
 
Pslb lab manual
Pslb lab manualPslb lab manual
Pslb lab manual
Vivek Kumar Sinha
 
Criminal Record System
Criminal Record SystemCriminal Record System
Criminal Record System
Cool Guy
 
System programmin practical file
System programmin practical fileSystem programmin practical file
System programmin practical file
Ankit Dixit
 
Functional Programming You Already Know
Functional Programming You Already KnowFunctional Programming You Already Know
Functional Programming You Already Know
Kevlin Henney
 
Structures and Pointers
Structures and PointersStructures and Pointers
Structures and Pointers
Prabu U
 
Easy R
Easy REasy R
Easy R
Ajay Ohri
 
Preprocessor directives
Preprocessor directivesPreprocessor directives
Preprocessor directives
Vikash Dhal
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
Ranel Padon
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packagesAjay Ohri
 
Program 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdfProgram 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdf
ezhilvizhiyan
 
C language by Dr. Gholkar D. R.
C language by Dr. Gholkar D. R.C language by Dr. Gholkar D. R.
C language by Dr. Gholkar D. R.
drgholkar
 
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
Danny Preussler
 
Python Programming
Python ProgrammingPython Programming
Python Programming
Sreedhar Chowdam
 
Savitch Ch 04
Savitch Ch 04Savitch Ch 04
Savitch Ch 04
Terry Yoast
 
A brief introduction to PostgreSQL
A brief introduction to PostgreSQLA brief introduction to PostgreSQL
A brief introduction to PostgreSQL
Vu Hung Nguyen
 
FireWatir - Web Application Testing Using Ruby and Firefox
FireWatir - Web Application Testing Using Ruby and FirefoxFireWatir - Web Application Testing Using Ruby and Firefox
FireWatir - Web Application Testing Using Ruby and Firefox
angrez
 

Similar to Graphics User Interface Lab Manual (20)

Unix lab
Unix labUnix lab
Unix lab
 
Sql Patterns
Sql PatternsSql Patterns
Sql Patterns
 
4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf
 
Pslb lab manual
Pslb lab manualPslb lab manual
Pslb lab manual
 
Criminal Record System
Criminal Record SystemCriminal Record System
Criminal Record System
 
System programmin practical file
System programmin practical fileSystem programmin practical file
System programmin practical file
 
Functional Programming You Already Know
Functional Programming You Already KnowFunctional Programming You Already Know
Functional Programming You Already Know
 
Structures and Pointers
Structures and PointersStructures and Pointers
Structures and Pointers
 
Easy R
Easy REasy R
Easy R
 
Preprocessor directives
Preprocessor directivesPreprocessor directives
Preprocessor directives
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packages
 
Program 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdfProgram 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdf
 
C language by Dr. Gholkar D. R.
C language by Dr. Gholkar D. R.C language by Dr. Gholkar D. R.
C language by Dr. Gholkar D. R.
 
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
15 tips to improve your unit tests (Droidcon Berlin 2016 Barcamp)
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Savitch Ch 04
Savitch Ch 04Savitch Ch 04
Savitch Ch 04
 
Savitch Ch 04
Savitch Ch 04Savitch Ch 04
Savitch Ch 04
 
A brief introduction to PostgreSQL
A brief introduction to PostgreSQLA brief introduction to PostgreSQL
A brief introduction to PostgreSQL
 
FireWatir - Web Application Testing Using Ruby and Firefox
FireWatir - Web Application Testing Using Ruby and FirefoxFireWatir - Web Application Testing Using Ruby and Firefox
FireWatir - Web Application Testing Using Ruby and Firefox
 

More from Vivek Kumar Sinha

Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
Vivek Kumar Sinha
 
Software engg unit 3
Software engg unit 3 Software engg unit 3
Software engg unit 3
Vivek Kumar Sinha
 
Software engg unit 2
Software engg unit 2 Software engg unit 2
Software engg unit 2
Vivek Kumar Sinha
 
Software engg unit 1
Software engg unit 1 Software engg unit 1
Software engg unit 1
Vivek Kumar Sinha
 
Data structure
Data structureData structure
Data structure
Vivek Kumar Sinha
 
Mathematics basics
Mathematics basicsMathematics basics
Mathematics basics
Vivek Kumar Sinha
 
E commerce 5_units_notes
E commerce 5_units_notesE commerce 5_units_notes
E commerce 5_units_notes
Vivek Kumar Sinha
 
B.ped
B.pedB.ped
Subject distribution
Subject distributionSubject distribution
Subject distribution
Vivek Kumar Sinha
 
Revision report final
Revision report finalRevision report final
Revision report final
Vivek Kumar Sinha
 
Lession plan mis
Lession plan misLession plan mis
Lession plan mis
Vivek Kumar Sinha
 
Lession plan dmw
Lession plan dmwLession plan dmw
Lession plan dmw
Vivek Kumar Sinha
 
Faculty planning
Faculty planningFaculty planning
Faculty planning
Vivek Kumar Sinha
 
Final presentation on computer network
Final presentation on computer networkFinal presentation on computer network
Final presentation on computer network
Vivek Kumar Sinha
 
Np syllabus summary
Np syllabus summaryNp syllabus summary
Np syllabus summary
Vivek Kumar Sinha
 
Internet of things
Internet of thingsInternet of things
Internet of things
Vivek Kumar Sinha
 
Induction program 2017
Induction program 2017Induction program 2017
Induction program 2017
Vivek Kumar Sinha
 
Vivek
VivekVivek
E magzine et&t
E magzine et&tE magzine et&t
E magzine et&t
Vivek Kumar Sinha
 
Mechanical engineering department (1)
Mechanical engineering department (1)Mechanical engineering department (1)
Mechanical engineering department (1)
Vivek Kumar Sinha
 

More from Vivek Kumar Sinha (20)

Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
 
Software engg unit 3
Software engg unit 3 Software engg unit 3
Software engg unit 3
 
Software engg unit 2
Software engg unit 2 Software engg unit 2
Software engg unit 2
 
Software engg unit 1
Software engg unit 1 Software engg unit 1
Software engg unit 1
 
Data structure
Data structureData structure
Data structure
 
Mathematics basics
Mathematics basicsMathematics basics
Mathematics basics
 
E commerce 5_units_notes
E commerce 5_units_notesE commerce 5_units_notes
E commerce 5_units_notes
 
B.ped
B.pedB.ped
B.ped
 
Subject distribution
Subject distributionSubject distribution
Subject distribution
 
Revision report final
Revision report finalRevision report final
Revision report final
 
Lession plan mis
Lession plan misLession plan mis
Lession plan mis
 
Lession plan dmw
Lession plan dmwLession plan dmw
Lession plan dmw
 
Faculty planning
Faculty planningFaculty planning
Faculty planning
 
Final presentation on computer network
Final presentation on computer networkFinal presentation on computer network
Final presentation on computer network
 
Np syllabus summary
Np syllabus summaryNp syllabus summary
Np syllabus summary
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Induction program 2017
Induction program 2017Induction program 2017
Induction program 2017
 
Vivek
VivekVivek
Vivek
 
E magzine et&t
E magzine et&tE magzine et&t
E magzine et&t
 
Mechanical engineering department (1)
Mechanical engineering department (1)Mechanical engineering department (1)
Mechanical engineering department (1)
 

Recently uploaded

A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
iemerc2024
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 

Recently uploaded (20)

A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 

Graphics User Interface Lab Manual

  • 1. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha GUI PROGRAMMING LAB
  • 2. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-1 Design & identify card containing information regarding students such as Name,Roll No.,Address,Class Studying,Date Of Birth,Blood Group,Phone No.,etc .Add a Exit Button. Property Setting: Property of Name label box Name=label1 Caption=Name Property of Roll No label box Name=label2 Caption= Roll No Property of Address label box Name=label3 Caption= Address Property of Class label box Name=label4 Caption= Class
  • 3. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Property of Date Of Birth label box Name=label5 Caption= Date Of Birth Property of Blood Group label box Name=label6 Caption= Blood Group Property of Phone No label box Name=label7 Caption= Phone No Property of Text box Name=Text1 Caption="" Property of Text box Name=Text2 Caption="" Property of Text box Name=Text3 Caption=""
  • 4. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Property of Text box Name=Text4 Caption="" Property of Text box Name=Text5 Caption="" Property of Text box Name=Text6 Caption="" Property of Text box Name=Text7 Caption="" Property of Exit command button Name=Command1 Caption=Exit Source Code: Private Sub cmd_Exit_Click()
  • 5. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Unload Me End Sub
  • 6. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-2 Develop an application to calculate Interest. It should accept rate of interest, period for calculation of interest (years), amount on which interest is to be calculated (Rs.). After clicking Compute Investment amount (Principal + Interest) should be displayed in separate text box. Add Exit button, Proper text box controls and labels to be used. Provide 2 options- Simple, Compound interest. Provide Picture and Radio Button control. Property Setting: Property of Principal label box Name=label1 Caption= Principal Property of Rate label box Name=label1 Caption= Rate Property of Time label box Name=label1 Caption= Time Property of Result label box Name=label1 Caption= Result Property of Text box
  • 7. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Name=Text1 Caption="" Property of Text box Name=Text2 Caption="" Property of Text box Name=Text3 Caption="" Property of Text box Name=Text4 Caption="" Property of SI command button Name=Command1 Caption=SI Property of CI command button Name=Command2 Caption=CI Property of clear command button
  • 8. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Name=Command3 Caption=clear Property of Exit command button Name=Command4 Caption=Exit Source Code: Private Sub cmd_SI_Click() Text4.text=((Text1.text*Text2.text*Text3.text)/100) End Sub Private Sub cmd_CI_Click() Text4.text=(Text1.text*(1+(Text2.text/100))^Text3.text) End Sub Private Sub cmd_Clear_Click() Text1.text=”” Text2.text=”” Text3.text=”” Text4.text=”” End Sub
  • 9. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Private Sub cmd_Exit_Click() Unload Me End Sub
  • 10. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-3 Design a Simple Calculator to implement addition, subtraction, multiplication, division, remainder operations. Property Setting: Property of enter first number label box Name=label1 Caption= enter first number Property of enter second number label box Name=label1 Caption= enter second number Property of Result label box Name=label1 Caption= Result Property of Text box Name=Text1 Caption="" Property of Text box Name=Text2 Caption=""
  • 11. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Property of Text box Name=Text3 Caption="" Property of Addition command button Name=Command1 Caption= Addition Property of Subtraction command button Name=Command2 Caption= Subtraction Property of Multiply command button Name=Command3 Caption= Multiply Property of Division command button Name=Command4 Caption= Division Property of Clear command button Name=Command5 Caption= Clear Source Code:
  • 12. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Private Sub cmd_Addition_Click() Text3.text=(Text1.text+Text2.text) End Sub Private Sub cmd_Subtraction_Click() Text3.text=(Text1.text-Text2.text) End Sub Private Sub cmd_Multiply_Click() Text3.text=(Text1.text*Text2.text) End Sub Private Sub cmd_Division_Click() Text3.text=(Text1.text/Text2.text) End Sub Private Sub cmd_Clear_Click() Unload Me End Sub
  • 13. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-4 Create a form using check box and option box to giveeffect for fonts such as bold, italic, underline strike through respectively for the text entered in the rich text box.Program to display message in message box. Property Setting: Property of Print command button Name=Command1 Caption=Print Source Code: Private Sub cmd_Print_Click() Print "Hello" MsgBox "Welcome To the World of Visual Basic" End Sub
  • 14. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-5 Demonstrate use of Date Environment, add tables and queries, place fields on form, report etc..Design a program to calculate Factorial. Property Setting: Property of enter number label box Name=label1 Caption= enter number Property of Text box Name=Text1 Caption="" Property of Calculate command button Name=Command1 Caption= Calculate Source Code: Private Sub cmd_Calculate_Click() Dim n As Integer, f As Double, I As Integer f = 1 n = Val(Text1.Text) If n > 170 Then
  • 15. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha MsgBox "Buffer Overflow!" Text1.Text = "" Text1.SetFocus Else For I = 1 To n f = f * I Next I MsgBox "Factorial of " & n & " is " & f Text1.Text = "" Text1.SetFocus End If End Sub
  • 16. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-6 Design a program to display regional languages of different states in India. Take many names of status of India in one listbox control and other text box control should display their languages e. g. Maharashtra _ Marathi etc. Property Setting: Property of List box Name=List1 List= Maharashtra Chhattisgarh Punjab Andhra Pradesh Kerala MP Property of Text box Name=Text1 Caption="" Property of Show Language command button Name=Command1 Caption= Show Language Source Code:
  • 17. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Private Sub cmd_Show Language_Click() If List1.Text = "Maharashtra" Then Text1.Text = "Marathi" ElseIf List1.Text = "Chhattisgarh" Then Text1.Text = "Chhattisgarhi" ElseIf List1.Text = "Punjab" Then Text1.Text = "Punjabi" ElseIf List1.Text = "Andhra Pradesh" Then Text1.Text = "Telugu" ElseIf List1.Text = "Kerala" Then Text1.Text = "Tamil" ElseIf List1.Text = "MP" Then Text1.Text = "Hindi" End If End Sub
  • 18. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-7 Design a program to display regional languages of different states in India. Take many names of status of India in one list .box control and other text box control should display their languages e. g. Maharashtra _ Marathi etc.Program for Language selector. Private Sub Command1_Click() If List1.Text = "Maharashtra" Then Text1.Text = "Marathi" ElseIf List1.Text = "Chhattisgarh" Then Text1.Text = "Chhattisgarhi" ElseIf List1.Text = "Punjab" Then Text1.Text = "Punjabi" ElseIf List1.Text = "Andhra Pradesh" Then Text1.Text = "Telugu" ElseIf List1.Text = "Kerala" Then Text1.Text = "Tamil" ElseIf List1.Text = "MP" Then Text1.Text = "Hindi" End If End Sub
  • 19. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha EXPERIMENT NO-8 Create a Simple NotE pad application, which contains Menus, Rich Text Box, Common Dialog box, formatted text using Toolbar, and Replace text, Windows (Tile / Cascade), Status bar and scroll bar Program to draw a menu . Private Sub mnuAddProject_Click() Print "Another Project Added!" End Sub Private Sub mnuCopy_Click() Print "Content Ready To Paste!" End Sub Private Sub mnuCut_Click() Print "Content Ready To Paste!" End Sub Private Sub mnuDelete_Click() Print "Deleted!" End Sub Private Sub mnuExit_Click() End End Sub
  • 20. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Private Sub mnuNewProject_Click() Print "New Project Added!" End Sub Private Sub mnuOpenProject_Click() Print "Existing Project Opened!" End Sub Private Sub mnuPaste_Click() Print "Content Copied!" End Sub Private Sub mnuRedo_Click() Print "Last Action Repeated!" End Sub Private Sub mnuRemoveProject_Click() Print "Current Project Removed!" End Sub Private Sub mnuReset_Click() Me.Cls End Sub
  • 21. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha Private Sub mnuSaveProject_Click() Print "Project Saved!" End Sub Private Sub mnuSaveProjectAs_Click() Print "Project Saved With Different Name!" End Sub Private Sub mnuUndo_Click() Print "Returned to Previous State!" End Sub
  • 22. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha
  • 23. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha
  • 24. SHRI RAWATPURASARKAR INSTITUTE OFTECHNOLOGY, NEW RAIPUR(C.G.) CSE/4th /GUI Lab/PreparedbyVivekKumarSinha