Program To Access any program


This is a program which took me around 15 minutes to make. A very simple program. Not even 30 lines code.

 

I want suggestions on how to tweak this program.

 

 

The code is given below. I didn’t attach a file since it is so short.


Public Class Form1

Private Sub btnChess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChess.Click
 Process.Start("chess.exe")
 End Sub

Private Sub btnNotepad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNotepad.Click
 Process.Start("notepad.exe")
 End Sub

Private Sub btnTicTacToe_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTicTacToe.Click
 Process.Start("Tic-Tac-Toe.exe")
 End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBooks.Click
 Process.Start("D:\Ebooks")
 End Sub

Private Sub btnMusic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMusic.Click
 Process.Start("D:\Music")
 End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
 Process.Start("c:\windows\system32\control.exe")
 End Sub
End Class

 

As you can see, the code is very simple

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s