Solved

Open form 2 and minimize form 1 to taskbar in VB.Net

Posted on 2006-11-26
2
654 Views
Last Modified: 2011-10-03
Hi Experts,

Form 1 has button that opens form 2.
I need sample code to minimize form 1 to taskbar when form 2 opens.

Thanks,

Dave
0
Comment
Question by:dave_sky
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 500 total points
ID: 18015073

'from form1
me.WindowState=FormWindowState.Minimized
dim frm2 as new form2
frm2.show
0
 

Author Comment

by:dave_sky
ID: 18015185
Thanks for the response.

I had to make a slight adjustment for VB.Net 2005.

'from form1
me.WindowState=FormWindowState.Minimized
frm2.show

Dave
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question