I am very new to programming, so please forgive me if this question seems so basic. I have developed my first application – an xps viewer. What I want to achieve is to be able to allow the user to select which document to open from a range of options that I have predefined in a combo box.
I’ve searched all over the net and can’t find an article that shows me how to do this. MSDN is bit too cryptic for me at this moment, so I get confused. Your help would be greatly appreciated.
PS> I think I’m using the FixedDocumentViewer (hope I wrote it right). Thanks.
Kismet
Assuming that this is a WPF application, you would add a button to your form and add a Click event to that button (select the button in the designer, show the Properties, select the Events tab in the Properties, and double-click in the empty column on the Click line).
Also assuming that the combobox contains the name of the file to show the user, the button click event would look something like: