We have an SaveFileDialog in our application, which offers a variety of formats the user can export media in. We determine the user's choice of format using the FilterIndex property of the SaveFileDialog. The various formats have different file extensions, so we would like the file name that the user has entered to change extension when the user changes the selected filter. Is this possible, and if so, how?
EDIT: I want this to happen while the dialog is shown, when the user changes the filter, so the user gets feedback on what the filename will be, rather than afterwards when the user closes the dialog. I've tried using a message filter, but it doesn't receive messages for the dialog. I've tried Application.Idle but that never fires while the dialog is running. I've tried a background thread, but FilterIndex doesn't get updated until the user closes the dialog.