PDA

View Full Version : Set current folder with Listbox


mrdude
06-19-2004, 08:00 AM
OK here's a small problem I have and I wonder if there is a solution for it,

When I use a button to open a file I use some thing like this for the button:

Folder.SetCurrent("AutoPlay\\Docs\\test");
File.Open("AutoPlay\\Docs\\test\\file.exe", "", SW_SHOWNORMAL);

This lets me open the exe file properly - because thre are files inside that folder that the exe file needs to run propely.


Now I know how to open the same file using the listbox - however how can I set the current folder in the lstbox - as I can only seem to do it with a button?