Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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