Search This Blog

Monday, November 22, 2010

Tutorial 14

14. Splash Screen



This video tutorial will teach you how to add a Splash Screen to your application. A Splash Screen is a customizable screen that will appear for a few seconds as your application loads up. It is a very professional feature to have in your application.

Tutorial 13

13. Text To Speech


This video tutorial will teach you how to create a text to speech application in Visual Basic .NET. Text to speech is very useful when you are creating applications with complicated tools. It can also be quite entertaining!

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click

Dim SAPI
SAPI = CreateObject("SAPI.spvoice")

SAPI.Speak("Welcome to the 13th visual basic .net tutorial")

End Sub

End Class

Tutorial 12

12. Log In Form


This video tutorial will teach you how to create a simple log in form using Visual Basic .NET. The Log In Form is a combination of things that we have covered in previous tutorials. It also introduces a new part of the If Statement.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click

If TextBox1.Text = "password123" Then
data.Show()
Else
MessageBox.Show("Wrong Password!")
End If

End Sub

End Class

Tutorial 11

11. Linking Forms


One of the most common questions I have been asked about Visual Basic .NET is how to link forms together. This tutorial will explain how you can easily link one form to another with the click of a button. You don’t have to create multiple applications for different windows, it can all be done on the same application.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Form2.Show()
End Sub

End Class

Saturday, November 20, 2010

Tutorial 10

10. Menu Strip


This tutorial will introduce the Menu Strip object for Visual Basic .NET applications. Having a Menu Strip will improve the usability of your application and allow you to expand it more. Every professional application has a Menu Strip, just take a look at your web browser! I used a Tool Strip in this tutorial by accident but just ignore that and use a Menu Strip object instead.



Code

Public Class Form1

Private Sub HelpToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles HelpToolStripMenuItem.Click
MessageBox.Show("this is the help form")
End Sub

Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Me.Close()
End Sub

End Class

Tutorial 9

9. Radio Button And Check Box


This tutorial will show you how to use the Radio Button and Check Box object in your application. Here we start to integrate parts of the language that we have previously covered and you can see how to use the If Statement in a real situation. The examples shown in this tutorial are for beginners and are meant to try and help you understand how the objects work.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click

If RadioButton1.Checked = True Then
MessageBox.Show("You are under 16!")
ElseIf RadioButton2.Checked = True Then
MessageBox.Show("You are over 16!")
End If

If CheckBox1.Checked = True Then
MessageBox.Show("You like Harry Potter, nerd")
End If

If CheckBox2.Checked = True Then
MessageBox.Show("What the hell, 2010 sucked")
End If

If CheckBox3.Checked = True Then
MessageBox.Show("the simpsons movie is a conspiracy dude")
End If

End Sub

End Class

Tutorial 8

8. List Box


This tutorial will introduce the ListBox object and give you a basic understanding of how it works. There are more practical uses than the one shown in this application but as we are still in the early stages, this example is for beginners.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
ListBox1.Items.Add(TextBox1.Text)
End Sub

End Class