際際滷

際際滷Share a Scribd company logo
Visual BASIC .NET 2012
PART 13- DIALOGUE BOX
Dr. GIRIJA NARASIMHAN 1
This slides are available http://slideshare.net /nbgirija
This tutorial available in youtube:
https://www.youtube.com/watch?v=xH2Geu4q004
Dr. GIRIJA NARASIMHAN 2
This tutorial only for beginners , those
who dont have any knowledge about
any programming language skill and
application design.
Dr.GIRIJA NARASIMHAN 3
DESIGN AND RUNTIME SCREEN
Dr.GIRIJA NARASIMHAN 4
CODING
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FontDialog1.ShowDialog()
Label1.Font = New Font(FontDialog1.Font.Name, FontDialog1.Font.Size,
FontDialog1.Font.Style)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
ColorDialog1.ShowDialog()
Label1.ForeColor = ColorDialog1.Color
End Sub
End Class
Dr.GIRIJA NARASIMHAN 5

More Related Content

Part 13 dialogue box vb.net

  • 1. Visual BASIC .NET 2012 PART 13- DIALOGUE BOX Dr. GIRIJA NARASIMHAN 1 This slides are available http://slideshare.net /nbgirija This tutorial available in youtube: https://www.youtube.com/watch?v=xH2Geu4q004
  • 2. Dr. GIRIJA NARASIMHAN 2 This tutorial only for beginners , those who dont have any knowledge about any programming language skill and application design.
  • 3. Dr.GIRIJA NARASIMHAN 3 DESIGN AND RUNTIME SCREEN
  • 4. Dr.GIRIJA NARASIMHAN 4 CODING Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click FontDialog1.ShowDialog() Label1.Font = New Font(FontDialog1.Font.Name, FontDialog1.Font.Size, FontDialog1.Font.Style) End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click ColorDialog1.ShowDialog() Label1.ForeColor = ColorDialog1.Color End Sub End Class