PDA

Click to See Complete Forum and Search --> : VB6 Menu Program


Goaty
Dec 3rd, 2008, 05:42 PM
Hello!

I am definately newer to the VB world but have a little experience from a class I took a few years ago.

Anyways here's an idea of what I would like this program to do: Eliminate the use of windows desktop for my arcade cabinet.

I am currently building a classic stand up arcade unit which will play all old school console games as well as arcade classics.

Currently for the programs to run u have to shuffle around between different emulation programs and I don't want to make my company do that. I want to creat an easy to use menu system of which people can point, click, and be on their way.

So whats my request?
I need help creating this menu. Which I think is a simple task I just haven't a clue where to get some sort of guide that fits my specific need. Here's a step by step visual of what I want to happen from the second when someone clicks the program.

Program is clicked it opens a menu titled "Emu Menu". On this Emu Menu I want buttons which open yet another menu that is titled w/e the button was clicked:
[Nintendo] [Super Nintendo] [Gameboy] [Nintendo 64]
[Sega] [Playstation] [Arcade]

So lets say someone was to click Gameboy.
This opens another menu titled obviously "Gameboy".
Here, I want the buttons OR scroll menu to have executable links for the game. So if someone was to click Tetris in this menu it opens the file from C;/yadayada/tetris. Easy.

If I can just get a template I can fill in the blanks.

I don't know what else to say but if anyone has any clue as to what I want to do and need more information please email me at hoaganaut@hotmail.com
or reply here ill check daily thanks!

Justin

Goaty
Dec 3rd, 2008, 10:52 PM
Figured it out on my own! One problem, I can make .exe files execute with the Shell command, BUT .smc files will not!!!!!!

I have .smc files directly linked to my zsnes emulator so theres no dragging and dropping.

How do I open files that arent EXE?!

si_the_geek
Dec 4th, 2008, 02:22 PM
Assuming that double-clicking on the files (in Explorer/My Computer/etc) does what you want, you use ShellExecute.

For information and examples, see the article How do I open a file/web-page in its default application? from our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)

Note that you can also use ShellExecute for .exe files, so you don't need to have separate code for different file types.

Goaty
Dec 4th, 2008, 03:16 PM
Thanks figured it out and then some! This is great I would say this has been resolved! :afrog:

Goaty
Dec 4th, 2008, 08:05 PM
Ok I'm nearing completion of all the basic effects I will require to load this into my cabinet.

Images within a button. Simple right? 2 ways to do it: I can either go to my properties section and add a picture or use the code

Command2.Picture = LoadPicture("c:\routehere")

Is there like a .Stretch command I can put here? or I don't even mind figuring up the dimensions of the button if I can manually resize my image that way.

Back to googling a solution!

Thanks

si_the_geek
Dec 5th, 2008, 03:44 AM
There is nothing built in, but you could write code to do it... however, unless you have several hundred images, it would be easier to manually resize them in a paint program (which would also be likely to give better quality).

Goaty
Dec 7th, 2008, 11:31 AM
There's quite a few but i guess I can just resize in paint no biggie :)