Hi,
I am a fresh newbie and started playing around with VB. I was interested in an all-in-one application. It ended up being a front-end application to executables. That application works to how I want it too. However, I wanted to create one with two drop-down boxes and two buttons that say "install".
What I would like to do is to click on the drop-down box, click on something, and then click the install button and have it install whatever I have linked to it. I have looked around and haven't found much since I am in no way a veteran, I may have over looked something.
Any help would be appreciated.
Thanks!
Dropdown question
Page 1 of 16 Replies - 372 Views - Last Post: 23 July 2012 - 06:02 PM
Replies To: Dropdown question
#2
Re: Dropdown question
Posted 20 July 2012 - 03:23 PM
You are making Windows form application. You want 2 ComboBoxes and 2 Buttons.
In your button's Click event you need to pass the Text property from your ComboBox to the Shell function.
Learn more about the controls you want to use:
VB ComboBox Tutorial
VB Button Tutorial
Learn how to use the Shell function to execute files:
VB Shell Tutorial
In your button's Click event you need to pass the Text property from your ComboBox to the Shell function.
Learn more about the controls you want to use:
VB ComboBox Tutorial
VB Button Tutorial
Learn how to use the Shell function to execute files:
VB Shell Tutorial
#3
Re: Dropdown question
Posted 20 July 2012 - 05:54 PM
This assumes that your install files are executables.
#4
Re: Dropdown question
Posted 20 July 2012 - 11:37 PM
@BobRodes
Pretty sure Shell() is going to do the trick.
Quote
a front-end application to executables
Pretty sure Shell() is going to do the trick.
#5
Re: Dropdown question
Posted 23 July 2012 - 11:57 AM
I hear ya, but the OP isn't saying that his install files are executables. He's saying that his application runs executables. He's also saying that he wants to automate the installation of those executables, and doesn't say anything about the nature of his install process.
For example, his install files could all be msi files and that wouldn't contradict the information given.
For example, his install files could all be msi files and that wouldn't contradict the information given.
#6
Re: Dropdown question
Posted 23 July 2012 - 05:26 PM
BobRodes, on 23 July 2012 - 11:57 AM, said:
I hear ya, but the OP isn't saying that his install files are executables. He's saying that his application runs executables. He's also saying that he wants to automate the installation of those executables, and doesn't say anything about the nature of his install process.
For example, his install files could all be msi files and that wouldn't contradict the information given.
For example, his install files could all be msi files and that wouldn't contradict the information given.
Sorry for the late response guys. Thanks for some insight thus far. My install files are indeed executables. I'm not sure how "automated" the process is/will be. I have a list of a few things I have in the list. Mostly drivers and such. I want to click the drop down box, click on a specific driver and then click the install button to install it.
Thanks again for the help.
#7
Re: Dropdown question
Posted 23 July 2012 - 06:02 PM
Shell will work fine, then. By the way, Jared mentions that Shell will run msi files as well.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|