PDA

View Full Version : I need help with ComboBox


cpell
09-28-2005, 11:12 PM
I have a ComboBox, and i want to run some application when de user select a item.

Sample:

When Word is select, and i click OK button then run word.exe
When Nero is select, and i click OK button then run nero.exe


Could someone help me with the script?

Thanks!! and sorry for my english.

Derek
09-29-2005, 04:55 AM
Hi

There is an example provided for the combo box in the following thread:

http://www.indigorose.com/forums/showthread.php?t=13116

hope this helps

Desmond
09-29-2005, 09:16 AM
Woo Hoo, people are starting to reference my examples! YES!! :)

cpell
09-29-2005, 03:52 PM
Thanks, i saw that but i want something different, not to jump to page like that example, i need to run .exe when i click OK and i cant do that :(

Desmond
09-29-2005, 05:11 PM
Hello,

The concept is exactly the same. You want to perform a task based on information from the combobox.

In the following example, there is a combobox. Items are added to the combobox at runtime (code is found on the On Show event of the page). This way the pathing is dynamic (The _SourceFolder variable is used).

The rest of the code can be found on the button's On Click event.

Hopefully this gets you started.

Regards.

Roboblue
09-29-2005, 05:13 PM
If you just want to open a file with the default app for the file's extension (ex: .doc) then use a File.Open action.

If you want to run a specific application such as Word or Arcrobat Reader, then you use a File.Run action.

To do either more professionally, you should do a dependencies check before offering the choice.

cpell
09-30-2005, 01:39 AM
Ohh my God!! thanks!! now is working!!! It is my first project and im very happy to find people helping me!! Thanks!!!

Now only i must include a something asking if really wants to install that ;)

Thanks again, u are really nice!!!

Sorry for my english!! :)

Corey
09-30-2005, 01:41 AM
Hey, great news. Nice job! :) :yes