Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Need Help With Visual Basic Code


  • Please log in to reply

#1
XpcIzzy

XpcIzzy

    New Member

  • Member
  • Pip
  • 7 posts
:tazz: Ok, Im a complete newb and im trying to make a program that i can program to have all my games as buttons that, when clicked will open up the game. now I have enough knowledge that i can create the layout of how i want it but i do not know how to create a link so that when I push the button for Max Payne for example, max payne.exe is launched
  • 0

Advertisements


#2
XpcIzzy

XpcIzzy

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts
All i need is the code to execute a program when a button is pushed
  • 0

#3
NeilA

NeilA

    Member

  • Member
  • PipPip
  • 10 posts
You need to use the shell function.


'*****
dim loadMaxPayne

loadMaxPayne = Shell("C:\Program Files\Max Payne\MaxPayne.exe", 1)

'*****


Thats only my guess at the path name but you can modify as necessary.

Let us know if it works.
  • 0

#4
XpcIzzy

XpcIzzy

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts
Yeah, It works great.


Thanks for the help
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP