SlideShare a Scribd company logo
1 of 32
Presentation
On
Topic: Timer, ComboBox,
Rich TextBox, Slider
 Timer Contol
 Combobox
 Rich Textbox
 Slider




Contents
 Timer Control Works like a stopwatch or alarm clock
 Timer control counts repeatedly as long as enabled
  property is set to true
 Interval: It specifies the interval between Timer events in
  milliseconds




Timer Control
Timer Control Application
   Dim counter As Integer
   Private Sub cmdend_Click()
   Timer1.Enabled = False
   End Sub

 Private Sub cmdstart_Click()
 Timer1.Enabled = True
 End Sub

   Private Sub Timer1_Timer()
   counter = counter + 1
   If counter = 95 Then
   counter = 1
   End If
   If counter = 1 Then
   Shape1.FillColor = vbRed
   Shape2.FillColor = vbWhite
   Shape3.FillColor = vbWhite
   End If


Coding
 If counter = 45 Then
 Shape1.FillColor = vbWhite
 Shape2.FillColor = vbYellow
 Shape3.FillColor = vbWhite
 End If
 If counter = 50 Then
 Shape1.FillColor = vbWhite
 Shape2.FillColor = vbWhite
 Shape3.FillColor = vbGreen
 End If
 End Sub
Output
 Features of Text box and List box
 It is used to present list to the User
 This control allow the user to select an item either by
  typing into the Combo box, or by selecting it from the list
 It contains an edit field




Combo Box Control
 Three Styles Combo Box
   The drop down combo Box
   The Simple combo Box
   The drop down list




Combo Box Styles
Drop down Combo Box
Style 0




Simple Combo Box
Style 1




 Drop Down List Box
 Style 2
Form Design
 Coding
     Dim a, b
     Private Sub cmdshowdate_Click()
     lblcombo.Caption = Combo2.Text + " " + Combo3.Text + "," + Combo4.Text
     End Sub

     Private Sub Combo1_click()
     If Combo1.ListIndex = 0 Then
     lblcombo.ForeColor = vbRed
     End If
     If Combo1.ListIndex = 1 Then
     lblcombo.ForeColor = vbGreen
     End If
     If Combo1.ListIndex = 2 Then
     lblcombo.ForeColor = vbBlue
     End If
     End Sub



  Combo Box Application
   Private Sub Form_Load()
   Combo1.AddItem "Red"
   Combo1.AddItem "Green"
   Combo1.AddItem "Blue"
   a=0
   Do While a < 31
   a=a+1
   Combo3.AddItem a
   Loop

   b = 1900
   Do While b < 2012
   b=b+1
   Combo4.AddItem b
   Loop


Conti…
 Combo2.AddItem "Jan"
 Combo2.AddItem "Feb"
 Combo2.AddItem "March"
 Combo2.AddItem "April"
 Combo2.AddItem "May"
 Combo2.AddItem "June"
 Combo2.AddItem "july"
 Combo2.AddItem "August"
 Combo2.AddItem "September"
 Combo2.AddItem "October"
 Combo2.AddItem "November"
 Combo2.AddItem "December"
 End Sub


Conti…
Output
 The Rich Text Box Control allows the user to enter and
  edit text while also providing more advanced formatting
  features than the conventional TextBox control.
 Syntax:
            RichTextBox




Rich Text Box
How to Open Rich Text Box
Form Design
 Private Sub cmdrtbbox_Click()
 rtb1.Text = "The rich text box support underlines, Bold
  and Italic text."
 rtb1.SelStart = rtb1.Find("underlines")
 rtb1.Span ("underlines")
 rtb1.SelUnderline = True

 rtb1.SelStart = 0
 rtb1.SelStart = rtb1.Find("Bold")
 rtb1.Span ("Bold")
 rtb1.SelBold = True


Conti…
 rtb1.SelStart = 0
 rtb1.SelStart = rtb1.Find("Italic")
 rtb1.Span ("Italic")
 rtb1.SelItalic = True
 rtb1.SelStart = 0
 rtb1.SelStart = rtb1.Find("underlines")
 rtb1.Span ("underlines")
 rtb1.SelFontName = "Arial"
 rtb1.SelFontSize = 18
 End Sub


Conti…
Output
 To Set the value of a point on a graph
 To select the range of number to be passed into the array
 To resize a form, field or other graphic object




Slider Control
How to open a slider
 Value
 Min, Max
 Tickfrequency
 Tickstyle
 Smallchange
 Largespace
 Select range
 Selstart
 Sellength




Operations using Slider
 ccOrientationhorizontal (value 0, the default)
   Orients the slider horizontally

 ccOrientationvertical (value1)
   Orients the slider vertically

   Slider1.orientation=ccorientationvertical



Selecting a Slider’s
Orientation
 Slider1.Max=90
 Slider1.Min=50




Setting a Slider’s Range
 Private Sub Form_Load()
 Slider1.Max = 250
 Slider1.Min = 0
 Slider1.LargeChange = 5
 Slider1.TickFrequency = 25
 End Sub

 Private Sub Slider1_Change()
 txt1.Text = "slider position" & Str(Slider1.Value)
 End Sub



Handling Slider Events
Conti…
 Private Sub Form_Load()
 Slider1.Max = 100
 Slider1.Min = 0
 Slider1.LargeChange = 5
 Slider1.TickFrequency = 10
 Slider1.TickStyle = sldNoTicks
 End Sub
THANKS

More Related Content

What's hot

Three Address code
Three Address code Three Address code
Three Address code Pooja Dixit
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Sudhanshu Srivastava
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networkingHarshita Yadav
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Dr Rajiv Srivastava
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.Mohd Arif
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptxAcad
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineeringDarshit Metaliya
 
Guided Transmission Media
Guided Transmission MediaGuided Transmission Media
Guided Transmission Mediaasrabatool
 
Transmission impairments(presentation)
Transmission impairments(presentation)Transmission impairments(presentation)
Transmission impairments(presentation)Vivek Kumar
 
L7 decision tree & table
L7 decision tree & tableL7 decision tree & table
L7 decision tree & tableNeha Gupta
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process FrameworkJAINAM KAPADIYA
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
Planning the development process
Planning the development processPlanning the development process
Planning the development processSiva Priya
 
Designing Techniques in Software Engineering
Designing Techniques in Software EngineeringDesigning Techniques in Software Engineering
Designing Techniques in Software Engineeringkirupasuchi1996
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquesSiva Priya
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And CorrectionRenu Kewalramani
 

What's hot (20)

Three Address code
Three Address code Three Address code
Three Address code
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptx
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineering
 
Guided Transmission Media
Guided Transmission MediaGuided Transmission Media
Guided Transmission Media
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Transmission impairments(presentation)
Transmission impairments(presentation)Transmission impairments(presentation)
Transmission impairments(presentation)
 
L7 decision tree & table
L7 decision tree & tableL7 decision tree & table
L7 decision tree & table
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process Framework
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Planning the development process
Planning the development processPlanning the development process
Planning the development process
 
Component level design
Component   level designComponent   level design
Component level design
 
Designing Techniques in Software Engineering
Designing Techniques in Software EngineeringDesigning Techniques in Software Engineering
Designing Techniques in Software Engineering
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
Client server model
Client server modelClient server model
Client server model
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 

Similar to Richtextbox

Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearDezyneecole
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Yeardezyneecole
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearDezyneecole
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearDezyneecole
 
Vb6 ch.7-3 cci
Vb6 ch.7-3 cciVb6 ch.7-3 cci
Vb6 ch.7-3 cciFahim Khan
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearDezyneecole
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Yeardezyneecole
 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearDezyneecole
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearDezyneecole
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Yeardezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 
Inventory management
Inventory managementInventory management
Inventory managementRajeev Sharan
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Yeardezyneecole
 
การใช้ ListBox และ ComboBox Control
การใช้ ListBox และ ComboBox Controlการใช้ ListBox และ ComboBox Control
การใช้ ListBox และ ComboBox ControlWarawut
 
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Yeardezyneecole
 

Similar to Richtextbox (20)

Vb file
Vb fileVb file
Vb file
 
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third Year
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
Vb6 ch.7-3 cci
Vb6 ch.7-3 cciVb6 ch.7-3 cci
Vb6 ch.7-3 cci
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Inventory management
Inventory managementInventory management
Inventory management
 
Docimp
DocimpDocimp
Docimp
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
VB net lab.pdf
VB net lab.pdfVB net lab.pdf
VB net lab.pdf
 
Vbreport
VbreportVbreport
Vbreport
 
การใช้ ListBox และ ComboBox Control
การใช้ ListBox และ ComboBox Controlการใช้ ListBox และ ComboBox Control
การใช้ ListBox และ ComboBox Control
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Year
 

More from Amandeep Kaur

Video/ Graphics cards
Video/ Graphics  cardsVideo/ Graphics  cards
Video/ Graphics cardsAmandeep Kaur
 
Menu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vbMenu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vbAmandeep Kaur
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vbAmandeep Kaur
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vbAmandeep Kaur
 
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbAmandeep Kaur
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphicsAmandeep Kaur
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphicsAmandeep Kaur
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphicsAmandeep Kaur
 
Report on browser war
Report on browser warReport on browser war
Report on browser warAmandeep Kaur
 
Report of internet connections
Report of internet connectionsReport of internet connections
Report of internet connectionsAmandeep Kaur
 

More from Amandeep Kaur (20)

Video/ Graphics cards
Video/ Graphics  cardsVideo/ Graphics  cards
Video/ Graphics cards
 
Menu vb
Menu vbMenu vb
Menu vb
 
Menu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vbMenu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vb
 
Active x control
Active x controlActive x control
Active x control
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vb
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vb
 
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vb
 
Treeview listview
Treeview listviewTreeview listview
Treeview listview
 
Progress bar
Progress barProgress bar
Progress bar
 
Filehandling
FilehandlingFilehandling
Filehandling
 
Socket
SocketSocket
Socket
 
Ppt of socket
Ppt of socketPpt of socket
Ppt of socket
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
 
Internet
InternetInternet
Internet
 
Internet working
Internet workingInternet working
Internet working
 
Report on browser war
Report on browser warReport on browser war
Report on browser war
 
Report of internet connections
Report of internet connectionsReport of internet connections
Report of internet connections
 
Report on intranet
Report on intranetReport on intranet
Report on intranet
 

Richtextbox

  • 2.  Timer Contol  Combobox  Rich Textbox  Slider Contents
  • 3.  Timer Control Works like a stopwatch or alarm clock  Timer control counts repeatedly as long as enabled property is set to true  Interval: It specifies the interval between Timer events in milliseconds Timer Control
  • 5. Dim counter As Integer  Private Sub cmdend_Click()  Timer1.Enabled = False  End Sub  Private Sub cmdstart_Click()  Timer1.Enabled = True  End Sub  Private Sub Timer1_Timer()  counter = counter + 1  If counter = 95 Then  counter = 1  End If  If counter = 1 Then  Shape1.FillColor = vbRed  Shape2.FillColor = vbWhite  Shape3.FillColor = vbWhite  End If Coding
  • 6.  If counter = 45 Then  Shape1.FillColor = vbWhite  Shape2.FillColor = vbYellow  Shape3.FillColor = vbWhite  End If  If counter = 50 Then  Shape1.FillColor = vbWhite  Shape2.FillColor = vbWhite  Shape3.FillColor = vbGreen  End If  End Sub
  • 8.  Features of Text box and List box  It is used to present list to the User  This control allow the user to select an item either by typing into the Combo box, or by selecting it from the list  It contains an edit field Combo Box Control
  • 9.  Three Styles Combo Box  The drop down combo Box  The Simple combo Box  The drop down list Combo Box Styles
  • 10. Drop down Combo Box Style 0 Simple Combo Box Style 1 Drop Down List Box Style 2
  • 12.  Coding  Dim a, b  Private Sub cmdshowdate_Click()  lblcombo.Caption = Combo2.Text + " " + Combo3.Text + "," + Combo4.Text  End Sub  Private Sub Combo1_click()  If Combo1.ListIndex = 0 Then  lblcombo.ForeColor = vbRed  End If  If Combo1.ListIndex = 1 Then  lblcombo.ForeColor = vbGreen  End If  If Combo1.ListIndex = 2 Then  lblcombo.ForeColor = vbBlue  End If  End Sub Combo Box Application
  • 13. Private Sub Form_Load()  Combo1.AddItem "Red"  Combo1.AddItem "Green"  Combo1.AddItem "Blue"  a=0  Do While a < 31  a=a+1  Combo3.AddItem a  Loop  b = 1900  Do While b < 2012  b=b+1  Combo4.AddItem b  Loop Conti…
  • 14.  Combo2.AddItem "Jan"  Combo2.AddItem "Feb"  Combo2.AddItem "March"  Combo2.AddItem "April"  Combo2.AddItem "May"  Combo2.AddItem "June"  Combo2.AddItem "july"  Combo2.AddItem "August"  Combo2.AddItem "September"  Combo2.AddItem "October"  Combo2.AddItem "November"  Combo2.AddItem "December"  End Sub Conti…
  • 16.  The Rich Text Box Control allows the user to enter and edit text while also providing more advanced formatting features than the conventional TextBox control.  Syntax: RichTextBox Rich Text Box
  • 17. How to Open Rich Text Box
  • 19.  Private Sub cmdrtbbox_Click()  rtb1.Text = "The rich text box support underlines, Bold and Italic text."  rtb1.SelStart = rtb1.Find("underlines")  rtb1.Span ("underlines")  rtb1.SelUnderline = True  rtb1.SelStart = 0  rtb1.SelStart = rtb1.Find("Bold")  rtb1.Span ("Bold")  rtb1.SelBold = True Conti…
  • 20.  rtb1.SelStart = 0  rtb1.SelStart = rtb1.Find("Italic")  rtb1.Span ("Italic")  rtb1.SelItalic = True  rtb1.SelStart = 0  rtb1.SelStart = rtb1.Find("underlines")  rtb1.Span ("underlines")  rtb1.SelFontName = "Arial"  rtb1.SelFontSize = 18  End Sub Conti…
  • 22.  To Set the value of a point on a graph  To select the range of number to be passed into the array  To resize a form, field or other graphic object Slider Control
  • 23. How to open a slider
  • 24.  Value  Min, Max  Tickfrequency  Tickstyle  Smallchange  Largespace  Select range  Selstart  Sellength Operations using Slider
  • 25.
  • 26.
  • 27.  ccOrientationhorizontal (value 0, the default)  Orients the slider horizontally  ccOrientationvertical (value1)  Orients the slider vertically  Slider1.orientation=ccorientationvertical Selecting a Slider’s Orientation
  • 29.  Private Sub Form_Load()  Slider1.Max = 250  Slider1.Min = 0  Slider1.LargeChange = 5  Slider1.TickFrequency = 25  End Sub  Private Sub Slider1_Change()  txt1.Text = "slider position" & Str(Slider1.Value)  End Sub Handling Slider Events
  • 31.  Private Sub Form_Load()  Slider1.Max = 100  Slider1.Min = 0  Slider1.LargeChange = 5  Slider1.TickFrequency = 10  Slider1.TickStyle = sldNoTicks  End Sub