SaveFileDialog inside a windows form

Z

Zach

I have a windows form that displays another Windows Form, which in
turns displays a SaveFileDialog when a certain menu option is selected
from the toolbar. When the SaveFileDialog opens, I can't use it. The
focus is set to another window, and when I click on the SaveFileDialog,
the focus is set for a split second then immediately goes back to some
other window. The net result is that the SaveFileDialog is completely
unusable because I can never activate the window in order to interact
with it.

Am I missing something obvious here? I thought all I had to do was
create it and call ShowDialog() on it.

Thanks
 
Z

Zach

I ended up making an architectural change that had the side effect of
fixing the problem. I'm not sure if I'll be able to reproduce it
anymore, but I'll try later. The major thing I changed that I think
could have fixed it was that previously the UI code (including the code
that created and displayed the SaveFileDialog) lived inside a DLL,
which was being invoked from a host executable. I removed that aspect
entirely, and when everything lives inside a single executable it works
fine. I can try to reproduce it later with the original exe/dll model.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top