luffymk
08-07-2007, 04:13 PM
open .exe with ComboBox
I have the code but it does not work to me well
CrazyFrog
08-07-2007, 04:36 PM
Sorry for double posting...
CrazyFrog
08-07-2007, 04:42 PM
The problem are "On Page" events :
ComboBox.AddItem("ComboBox1", "aplication 1.exe");
ComboBox.AddItem("ComboBox1", "aplication 2.exe");
ComboBox.AddItem("ComboBox1", "aplication 3.exe");
THE CORRECT CODE IS :
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 :
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 :
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.