So I'm currently practicing my skills by creating a sample queue-system storing data in a local textfile. I was wondering if I can display a list of tickets on a listbox (queue box).
1 textfile = 1 ticket.
Here is my sample code:
Problems: 1. It displays the ticket number together with the extension name (1005.txt)
- It kinda adds to the listbox all the textfiles in the folder. I only wanna show the textfiles as listitems so when I click refresh, it must display the same number of items and not adding duplicates.
Can anyone help me out? Thanks!