• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 675
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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