Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2006

Tip: Looking for answers? Try searching our database.

SaveFileDialog inside a windows form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zach - 28 Oct 2006 03:08 GMT
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
Bryan Phillips - 28 Oct 2006 18:48 GMT
Are you using Show() or ShowDialog() to show the 2nd form (that opens
the SaveFileDialog)?

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> I have a windows form that displays another Windows Form, which in
> turns displays a SaveFileDialog when a certain menu option is selected
[quoted text clipped - 9 lines]
>
> Thanks
Zach - 30 Oct 2006 18:00 GMT
Show(), but I tried it with ShowDialog() as well, and recall having the
same problem.

> Are you using Show() or ShowDialog() to show the 2nd form (that opens
> the SaveFileDialog)?
[quoted text clipped - 16 lines]
> >
> > Thanks
Bryan Phillips - 31 Oct 2006 03:17 GMT
Can you post some sample code?

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> Show(), but I tried it with ShowDialog() as well, and recall having the
> same problem.
[quoted text clipped - 19 lines]
> > >
> > > Thanks
Zach - 31 Oct 2006 20:34 GMT
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.

> Can you post some sample code?
>
[quoted text clipped - 25 lines]
> > > >
> > > > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.