open .exe with ComboBox
I have the code but it does not work to me well
Professional Software Development Tools
open .exe with ComboBox
I have the code but it does not work to me well
Sorry for double posting...
Last edited by CrazyFrog; 08-07-2007 at 03:48 PM.
The problem are "On Page" events :
THE CORRECT CODE IS :Code:ComboBox.AddItem("ComboBox1", "aplication 1.exe"); ComboBox.AddItem("ComboBox1", "aplication 2.exe"); ComboBox.AddItem("ComboBox1", "aplication 3.exe");
And also , On " to exectue " button , the correct code should be :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" );
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 .Code:index = ComboBox.GetSelected("ComboBox1"); selected = ComboBox.GetItemData("ComboBox1", index); File.Open(selected.."");
Here is the correct project file :
Last edited by CrazyFrog; 08-07-2007 at 03:45 PM.