• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 681
  • Last Modified:

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

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
dave_sky
Asked:
dave_sky
1 Solution
 
gangwischCommented:

'from form1
me.WindowState=FormWindowState.Minimized
dim frm2 as new form2
frm2.show
0
 
dave_skyAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now