HELP:sign0104:
I want my program to open a folder and list the items in it so i can select what i need from this folder to use .
What box do i use is it a txt box or a combo box .This box will have jpegs or gifs i want to select it will be a folder called outlook.
Any help would be greatful
start by using filesearch, which makes an arraylist of all the files in the selected directory.
Then copy the items to a list box which enables you to select an item from a displayed list.
Look at Erel's GPS4PPC program, he makes a list of the available ports and select one of them ( called "lstPorts" there).
The launching of the specific file can be done by Shell command with the name of the file, if there is a program that can open this file.
Well done
I added open dialog to enable the selection of directory, and separated the file name from the dir name to show only the file name without the path.
It works on the device also, but may take a minute to collect all the files.
Great improvements. But i would prefer not to use an open-dialog. It is made for opening files, Wich means you can't open an empty folder because there are no files inside