Connecting Tech Pros Worldwide Forums | Help | Site Map

Make new form not show up in the taskbar

Newbie
 
Join Date: Aug 2008
Location: Orlando, FL
Posts: 13
#1: Aug 11 '08
I just started programming not too long ago and I am going for my MCAD andone thing they have not taught me in class is how to open up multiple windows inside a main form. Everytime I click on a button to call a new form (new window) it opens as a new window on my start bar. Is there any way to make the program open the windows in one?

insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#2: Aug 11 '08

re: Make new form not show up in the taskbar


Are you talking about MDI or just making a form not show up in the task bar?

If you want MDI, you can check out this article.

If you just want to hide the taskbar presence, you can set the form's ShowInTaskbar property to false.
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#3: Aug 11 '08

re: Make new form not show up in the taskbar


Also:
Please use appropriate titles. A poor title means that potential helpers may skip your post because they do not know what it is about.

Everybody here wants help, so "Please Help Me" isn't a very good title. Please mention the language and technology in your title as well, for example: [C#/ASP.NET] or [VB.NET/Windows Forms] or [C#/Console].

MODERATOR
Newbie
 
Join Date: Aug 2008
Location: Orlando, FL
Posts: 13
#4: Aug 11 '08

re: Make new form not show up in the taskbar


I work with a programmer who's been doing this for years but he refuses to help, he's very arrogant to say the least...anyway he built a program that we use in the office that no matter how many windows he has open at once theres only one instance of the program in the start bar. I started my own program and when I open new windows they all show up in the start bar as seperate windows. I don't know if I'm making any sense.
Newbie
 
Join Date: Aug 2008
Location: Orlando, FL
Posts: 13
#5: Aug 11 '08

re: Make new form not show up in the taskbar


Sorry this is VB.Net and I'm using Visual Studio 2008
Newbie
 
Join Date: Aug 2008
Location: Orlando, FL
Posts: 13
#6: Aug 11 '08

re: Make new form not show up in the taskbar


I think I am talking about MDI....thank you for your help and I will be more descriptive next time, sorry about that.
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#7: Aug 11 '08

re: Make new form not show up in the taskbar


ya, like insertalias was saying, and a simple way to do that is on a button click set a reference to a new form, with the property 'showintaskbar' set to false

example:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim myform As New form1
  3.         myform.ShowInTaskbar = False
  4.         myform.Show()
  5.  
  6.     End Sub
p.s. vb 2008 rocks :p
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#8: Aug 11 '08

re: Make new form not show up in the taskbar


Quote:

Originally Posted by joedeene

p.s. vb 2008 rocks :p

Not to those of us who use C#
O_o
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#9: Aug 11 '08

re: Make new form not show up in the taskbar


well i cant fight that, c# is good but vb rocks no matter what, and i just started using c sharp, recently, but i like them both, so there =p

plus i said that because i started with VB and now am transitioning to c sharp, and then soon enough c++ :)
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#10: Aug 11 '08

re: Make new form not show up in the taskbar


I should have added a J/K to my post. VB is fine, as long as you don't pick up some of the bad habits that it encourages.
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#11: Aug 11 '08

re: Make new form not show up in the taskbar


Quote:

Originally Posted by insertAlias

I should have added a J/K to my post. VB is fine, as long as you don't pick up some of the bad habits that it encourages.

what bad habits? other than its really simple i think its a great starter language?
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#12: Aug 11 '08

re: Make new form not show up in the taskbar


Read this
Reply


Similar .NET Framework bytes