Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to store and display multiple user-selected files
    primarykey
    data
    text
    <p>Alright, this is hard to put into clear words, but here I go:</p> <p>In my current project I am trying to allow the user to select executable files (these are to be launched when my application launches). In addition, I want to allow the user to choose whether they want my application to close these launched executable files when it itself closes (a simple boolean option, one for each .exe).</p> <p>I use an open file dialog to allow the user to select an executable, and all I need from it is the path (which I successfully obtain), however I need to display these files in a way which allows the user to select and remove them as well as set the aforementioned boolean for each one (as they so desire).</p> <p>I can easily grab file names and icons (perfect to display to the user), but again I don't know what control will allow me to display this <em>and</em> include a boolean checkbox. Whatever control it is, it needs to allow the user to double click these entries (deleting them, in this case).</p> <p>Now I assume I could use a dictionary to handle the data behind the scenes, with the string being the path to the file returned by the dialog and the bool being the bool I'd need to allow the user to change in the control... But I'm not sure if this is the best way of handling this data and I'm unsure of how I could populate the control with the information I can gather from the path (and allow the control to alter the boolean option).</p> <p>I'm sorry if that didn't make sense, I'm finding it very, very difficult to put my predicament into words!</p> <p>Thanks in advance if anyone can provide any assistance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload