|
-
Jan 7th, 2006, 11:02 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Restoring a form !
OK this should be easy, I have a small application that uses 2 forms what I want to do is restore the 2nd form from the taskbar when the user tries to access it, assuming of course that it already exists.
I've got all the code to check if an instance of the form exists, but can't seem to get it to restore from the taskbar.
Surely this is simple I can't seem to find the method
-
Jan 7th, 2006, 11:21 AM
#2
Re: Restoring a form !
did you try Form.Focus? by forcing it focus it'll bring it up from the taskbar
-
Jan 7th, 2006, 11:28 AM
#3
Re: Restoring a form !
How about...
VB Code:
Me.WindowState = FormWindowState.Normal
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 7th, 2006, 04:43 PM
#4
Thread Starter
Hyperactive Member
Re: Restoring a form !
Thanks for the help, I'd tried form.focus but it didn't work.
However frmConfig.WindowState = FormWindowState.Normal works perfectly !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|