Vous êtes sur la page 1sur 9

Institute of Business & Bio-Sciences Visual Basic 6.

0
Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "notepad.exe", vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "mspaint.exe", vbMaximizedFocus End Sub Private Sub Command3_Click () Shell "calc.exe", vbMaximizedFocus End Sub

Page No: -1

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "notepad.exe kapil.txt", vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "mspaint.exe kapil.bmp", vbMaximizedFocus End Sub

Page No: -2

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "explorer.exe D:\new movie song\connections06 (www.songs.pk).mp3" End Sub Private Sub Command2_Click () Shell "explorer.exe D:\new movie song\kaapsa10 (songs.pk).mp3" End Sub Private Sub Command3_Click () Shell "explorer.exe D:\new movie song\tuta tuta ek.mp3" End Sub Private Sub Form Load () Form1.Caption = "My Audio Player" End Sub

Page No: -3

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "explorer.exe c:, vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "explorer.exe d:, vbMaximizedFocus End Sub Private Sub Command3_Click () Shell "explorer.exe e:, vbMaximizedFocus End Sub Private Sub Form Load () Form1.Caption = "My drives" End Sub

Page No: -4

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "explorer.exeC:\ProgramFiles\MicrosoftOffice\Office12\winword.exe", vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "explorer.exe C:\ProgramFiles\MicrosoftOffice\Office12\EXCEL.exe", vbMaximizedFocus End Sub Private Sub Command3_Click () Shell"explorer.exeC:\ProgramFiles\MicrosoftOffice\Office12\POWERPNT.exe", vbMaximizedfocus End Sub Private Sub Form Load () Form1.Caption = "My Office Apps" End Sub

Page No: -5

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "explorer.exe C:\Program Files\Internet Explorer\iexplore.exe", vbMaximizedFocus End Sub Private Sub Form Load () Form1.Caption = "My Web Browser" End Sub

Page No: -6

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "explorer.exe D:\video\english\Enrique\Enrique Iglesias - Do You Know (The Ping Pong Song).avi", vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "explorer.exe D:\video\english\Tylor\Taylor_Swift_-_Mine_ (Xvid-2nafish).avi", vbMaximizedFocus End Sub Private Sub Command3_Click () Shell "explorer.exe D:\video\english\Tylor\Taylor Swift - You Belong with Me (2009.JB59).avi", vbMaximizedFocus End Sub Private Sub Form Load () Form1.Caption = "My Video Player" End Sub

Page No: -7

Institute of Business & Bio-Sciences Visual Basic 6.0


Design the following Visual Basic Application.

Private Sub Command1_Click () Shell "C:\Program Files\Internet Explorer\iexplore.exe www.facebook.com", vbMaximizedFocus End Sub Private Sub Command2_Click () Shell "C:\Program Files\Internet Explorer\iexplore.exe www.orkut.com", vbMaximizedFocus End Sub Private Sub Command3_Click () Shell "C:\Program Files\Internet Explorer\iexplore.exe www.ibibo.com", vbMaximizedFocus End Sub Private Sub Form Load () Form1.Caption = "My Social Sites" End Sub

Page No: -8

Institute of Business & Bio-Sciences Visual Basic 6.0

Page No: -9

Vous aimerez peut-être aussi