Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    46

    open .exe with ComboBox

    open .exe with ComboBox

    I have the code but it does not work to me well
    Attached Files

  2. #2
    Join Date
    Jan 2007
    Location
    Resita ( Romania )
    Posts
    118
    Sorry for double posting...
    Last edited by CrazyFrog; 08-07-2007 at 03:48 PM.

  3. #3
    Join Date
    Jan 2007
    Location
    Resita ( Romania )
    Posts
    118
    The problem are "On Page" events :

    Code:
    ComboBox.AddItem("ComboBox1", "aplication 1.exe");
    ComboBox.AddItem("ComboBox1", "aplication 2.exe");
    ComboBox.AddItem("ComboBox1", "aplication 3.exe");
    THE CORRECT CODE IS :

    Code:
    ComboBox.AddItem("ComboBox1", "aplication 1.exe" , "AutoPlay\\Docs\\aplication_1.exe" );
    ComboBox.AddItem("ComboBox1", "aplication 2.exe", "AutoPlay\\Docs\\aplication_2.exe" );
    ComboBox.AddItem("ComboBox1", "aplication 3.exe", "AutoPlay\\Docs\\aplication_3.exe" );
    And also , On " to exectue " button , the correct code should be :

    Code:
    index = ComboBox.GetSelected("ComboBox1");
    selected = ComboBox.GetItemData("ComboBox1", index);
    File.Open(selected.."");
    The problem is when you added a new item to the ComboBox , you added only the ComboBox TEXT . The text appears in ComboBox , and the data remains hidden .

    Here is the correct project file :
    Attached Files
    Last edited by CrazyFrog; 08-07-2007 at 03:45 PM.

Similar Threads

  1. how i can open file from comboBox by clicking on button
    By melissa in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 06-06-2007, 09:24 AM
  2. Run Player .exe file first
    By SGW in forum Setup Factory 7.0
    Replies: 0
    Last Post: 12-23-2005, 09:28 AM
  3. open a .exe and .bat ....how??
    By toiaqui in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 11-17-2004, 03:00 PM
  4. Open PowerPoint file to a specific slide
    By Echo S in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 02-26-2004, 06:17 PM
  5. HOWTO: Open an Internet URL in the Default Web Browser
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 09-18-2002, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts