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 / Visual Studio.NET / VS Tools for Office / March 2007

Tip: Looking for answers? Try searching our database.

tricky form close

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Waxaholic - 15 Mar 2007 03:06 GMT
I have a form (fmMover) which is used as input for Sheet1. I am trying
to lock it to this sheet only. If another sheet is selected, the form
should hide or close. Possibly minimize to the taskbar. I have tried
to use the fmMover.Close() in the Sheet1_DeActivate event but it won't
work. Does anyone have any advice or another approach to achieving
this.

Thanks,

Brian
Bryan Phillips - 15 Mar 2007 03:12 GMT
Try calling fmMover.Hide() instead.

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

> I have a form (fmMover) which is used as input for Sheet1. I am trying
> to lock it to this sheet only. If another sheet is selected, the form
[quoted text clipped - 6 lines]
>
> Brian
Waxaholic - 15 Mar 2007 13:11 GMT
Thanks but it still persists. I have tried

fmMover.Close()
fmMover.Hide()
fmMover.Dispose()

yet the form just goes to the taskbar and remains.

On Mar 14, 8:12 pm, "Bryan Phillips"
<bphill...@nospam.spamcop.net.spammenot> wrote:
> Try calling fmMover.Hide() instead.
>
[quoted text clipped - 15 lines]
>
> - Show quoted text -
Bryan Phillips - 20 Mar 2007 17:49 GMT
Also, set the form's ShowInTaskbar property to False.

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

> Thanks but it still persists. I have tried
>
[quoted text clipped - 25 lines]
> >
> > - Show quoted text -

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.