
If you aren't able to find what you need here, you can check out the main programming sectionįor additional VB 6.0 code and tutorials.Īn example of how to add a menu to another program. This guide does not claim to have the best answers, just answers that will get the job done. I noticed that the same questions kept getting asked over and over again, so I started saving code that seemedĩ5% of the code you'll find on this page was written by me, the other samples were either edited or submitted. Back in the day I used to answer a lot of questions and I frequented a lot of VB message boards. This is a collection of highly requested Visual Basic code that I put together back in 19.Īlmost all of these samples will work on fine on Visual Basic 5.0 and for Microsoft Excel and Microsoft Access Programming (when done with VBA), In the past I've done.Visual Basic 6.0 Code Bank Put Together By Patrick Gillespie It gets us talking, working together, we get to know each other and I like to think they are fun/funny activities. I like to start our team meetings off with an ice breaker or team building exercise.

Which can be used to open a particular file. I want the dialog box that will be showing the list of programs (.exe) Subject: Re: How to open 'Open with' dialog box in VB6 You can then run the executables by shelling out to WIndows.

PS You might want to extend the Filter to also include. Flags = cdlOFNPathMustExist Or cdlOFNFileMustExist Define a string PRGFileName and setup a CancelError 'On Error Goto' handler then, on an 'Open' command button, say, add the following code:
