際際滷

際際滷Share a Scribd company logo
Presentation
On
Topic: Timer, ComboBox,
Rich TextBox, 際際滷r
 Timer Contol
 Combobox
 Rich Textbox
 際際滷r




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


遺看稼岳庄
 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


遺看稼岳庄
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


遺看稼岳庄
 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


遺看稼岳庄
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




際際滷r Control
How to open a slider
 Value
 Min, Max
 Tickfrequency
 Tickstyle
 Smallchange
 Largespace
 Select range
 Selstart
 Sellength




Operations using 際際滷r
Richtextbox
Richtextbox
 ccOrientationhorizontal (value 0, the default)
   Orients the slider horizontally

 ccOrientationvertical (value1)
   Orients the slider vertically

   際際滷r1.orientation=ccorientationvertical



Selecting a 際際滷rs
Orientation
 際際滷r1.Max=90
 際際滷r1.Min=50




Setting a 際際滷rs Range
 Private Sub Form_Load()
 際際滷r1.Max = 250
 際際滷r1.Min = 0
 際際滷r1.LargeChange = 5
 際際滷r1.TickFrequency = 25
 End Sub

 Private Sub 際際滷r1_Change()
 txt1.Text = "slider position" & Str(際際滷r1.Value)
 End Sub



Handling 際際滷r Events
遺看稼岳庄
 Private Sub Form_Load()
 際際滷r1.Max = 100
 際際滷r1.Min = 0
 際際滷r1.LargeChange = 5
 際際滷r1.TickFrequency = 10
 際際滷r1.TickStyle = sldNoTicks
 End Sub
THANKS

More Related Content

What's hot (20)

Case study-the next gen pos
Case study-the next gen posCase study-the next gen pos
Case study-the next gen pos
Vignesh Saravanan
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
harsh kothari
Java variable types
Java variable typesJava variable types
Java variable types
Soba Arjun
Operators in java
Operators in javaOperators in java
Operators in java
Then Murugeshwari
Encapsulation
EncapsulationEncapsulation
Encapsulation
Githushan Gengaparam
Exception Handling in C#
Exception Handling in C#Exception Handling in C#
Exception Handling in C#
Abid Kohistani
Templates in C++
Templates in C++Templates in C++
Templates in C++
Tech_MX
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
web communication protocols in IoT
web communication protocols in IoTweb communication protocols in IoT
web communication protocols in IoT
FabMinds
Polymorphism
PolymorphismPolymorphism
Polymorphism
Nochiketa Chakraborty
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
Prachi Sasankar
C++ classes
C++ classesC++ classes
C++ classes
imhammadali
Threads in python
Threads in pythonThreads in python
Threads in python
baabtra.com - No. 1 supplier of quality freshers
Chapter 07 inheritance
Chapter 07 inheritanceChapter 07 inheritance
Chapter 07 inheritance
Praveen M Jigajinni
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
Mukesh Tekwani
State chart diagram
State chart diagramState chart diagram
State chart diagram
Preeti Mishra
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overriding
Rajab Ali
Textbox n label
Textbox n labelTextbox n label
Textbox n label
chauhankapil
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
Vimal Dewangan
Java abstract class & abstract methods
Java abstract class & abstract methodsJava abstract class & abstract methods
Java abstract class & abstract methods
Shubham Dwivedi
Case study-the next gen pos
Case study-the next gen posCase study-the next gen pos
Case study-the next gen pos
Vignesh Saravanan
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
harsh kothari
Java variable types
Java variable typesJava variable types
Java variable types
Soba Arjun
Exception Handling in C#
Exception Handling in C#Exception Handling in C#
Exception Handling in C#
Abid Kohistani
Templates in C++
Templates in C++Templates in C++
Templates in C++
Tech_MX
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
web communication protocols in IoT
web communication protocols in IoTweb communication protocols in IoT
web communication protocols in IoT
FabMinds
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
Prachi Sasankar
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
Mukesh Tekwani
State chart diagram
State chart diagramState chart diagram
State chart diagram
Preeti Mishra
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overriding
Rajab Ali
Textbox n label
Textbox n labelTextbox n label
Textbox n label
chauhankapil
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
Vimal Dewangan
Java abstract class & abstract methods
Java abstract class & abstract methodsJava abstract class & abstract methods
Java abstract class & abstract methods
Shubham Dwivedi

Similar to Richtextbox (20)

Vb file
Vb fileVb file
Vb file
Mukund Trivedi
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third Year
Dezyneecole
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
dezyneecole
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
Dezyneecole
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
Dezyneecole
Vb6 ch.7-3 cci
Vb6 ch.7-3 cciVb6 ch.7-3 cci
Vb6 ch.7-3 cci
Fahim 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 Year
Dezyneecole
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
dezyneecole
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
Dezyneecole
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
Dezyneecole
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
Dezyneecole
Inventory management
Inventory managementInventory management
Inventory management
Rajeev Sharan
Docimp
DocimpDocimp
Docimp
KaivanShah30
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
dezyneecole
VB net lab.pdf
VB net lab.pdfVB net lab.pdf
VB net lab.pdf
Prof. Dr. K. Adisesha
Vbreport
VbreportVbreport
Vbreport
shweta-sharma99
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
Warawut
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
lenintoapanta1992
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Year
dezyneecole
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third Year
Dezyneecole
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
dezyneecole
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
Dezyneecole
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
Dezyneecole
Vb6 ch.7-3 cci
Vb6 ch.7-3 cciVb6 ch.7-3 cci
Vb6 ch.7-3 cci
Fahim 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 Year
Dezyneecole
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
dezyneecole
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
Dezyneecole
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
Dezyneecole
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
Dezyneecole
Inventory management
Inventory managementInventory management
Inventory management
Rajeev Sharan
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
dezyneecole
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
犖犖迦牽犢犖犢 ListBox 犢犖ム鍵 ComboBox Control
Warawut
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Year
dezyneecole

More from Amandeep Kaur (20)

Video/ Graphics cards
Video/ Graphics  cardsVideo/ Graphics  cards
Video/ Graphics cards
Amandeep Kaur
Menu vb
Menu vbMenu vb
Menu vb
Amandeep 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 vb
Amandeep Kaur
Active x control
Active x controlActive x control
Active x control
Amandeep 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 vb
Amandeep 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 vb
Amandeep Kaur
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vb
Amandeep Kaur
Treeview listview
Treeview listviewTreeview listview
Treeview listview
Amandeep Kaur
Progress bar
Progress barProgress bar
Progress bar
Amandeep Kaur
Filehandling
FilehandlingFilehandling
Filehandling
Amandeep Kaur
Socket
SocketSocket
Socket
Amandeep Kaur
Ppt of socket
Ppt of socketPpt of socket
Ppt of socket
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Internet working
Internet workingInternet working
Internet working
Amandeep Kaur
Report on browser war
Report on browser warReport on browser war
Report on browser war
Amandeep Kaur
Report of internet connections
Report of internet connectionsReport of internet connections
Report of internet connections
Amandeep Kaur
Report on intranet
Report on intranetReport on intranet
Report on intranet
Amandeep Kaur
Video/ Graphics cards
Video/ Graphics  cardsVideo/ Graphics  cards
Video/ Graphics cards
Amandeep 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 vb
Amandeep 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 vb
Amandeep 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 vb
Amandeep Kaur
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vb
Amandeep Kaur
Treeview listview
Treeview listviewTreeview listview
Treeview listview
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
Amandeep Kaur
Report on browser war
Report on browser warReport on browser war
Report on browser war
Amandeep Kaur
Report of internet connections
Report of internet connectionsReport of internet connections
Report of internet connections
Amandeep Kaur
Report on intranet
Report on intranetReport on intranet
Report on intranet
Amandeep Kaur

Richtextbox

  • 2. Timer Contol Combobox Rich Textbox 際際滷r 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 遺看稼岳庄
  • 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 遺看稼岳庄
  • 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 遺看稼岳庄
  • 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 遺看稼岳庄
  • 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 際際滷r Control
  • 23. How to open a slider
  • 24. Value Min, Max Tickfrequency Tickstyle Smallchange Largespace Select range Selstart Sellength Operations using 際際滷r
  • 27. ccOrientationhorizontal (value 0, the default) Orients the slider horizontally ccOrientationvertical (value1) Orients the slider vertically 際際滷r1.orientation=ccorientationvertical Selecting a 際際滷rs Orientation
  • 29. Private Sub Form_Load() 際際滷r1.Max = 250 際際滷r1.Min = 0 際際滷r1.LargeChange = 5 際際滷r1.TickFrequency = 25 End Sub Private Sub 際際滷r1_Change() txt1.Text = "slider position" & Str(際際滷r1.Value) End Sub Handling 際際滷r Events
  • 31. Private Sub Form_Load() 際際滷r1.Max = 100 際際滷r1.Min = 0 際際滷r1.LargeChange = 5 際際滷r1.TickFrequency = 10 際際滷r1.TickStyle = sldNoTicks End Sub