Professional Documents
Culture Documents
CODES FOR VB
1. Shutdown Panel
Code:
Shell("Shutdown -s")
Shell("Shutdown -l")
Shell("Shutdown -r")
Shell("Shutdown -h")
2. Music Payer
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
3. YouTube Downloader
Script:
5. Text to speech
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Dim Speech Speech = CreateObject("sapi.spvoice")
Speech.speak(TextBox1.Text) End Sub
6. BMI Calculator
Try
Dim height, weight, bmi As Single
Height = TextBox1.Text
weight = TextBox2.Text
bmi = (weight) / (Height ^ 2)
TextBox3.Text = bmi
Catch ex As Exception
'Do Nothing
End Try
7. FB Login
https://login.facebook.com/login.php?login_attempt=1