Make new form not show up in the taskbar | Newbie | | Join Date: Aug 2008 Location: Orlando, FL
Posts: 13
| | |
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?
|  | Forum Leader | | Join Date: Apr 2008 Location: San Antonio, TX (USA)
Posts: 2,608
| | | 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.
|  | Forum Leader | | Join Date: Apr 2008 Location: San Antonio, TX (USA)
Posts: 2,608
| | | 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
| | | 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
| | | 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
| | | 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.
|  | Site Addict | | Join Date: Jul 2008 Location: US of A
Posts: 587
| | | 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: - Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
-
Dim myform As New form1
-
myform.ShowInTaskbar = False
-
myform.Show()
-
-
End Sub
p.s. vb 2008 rocks :p
|  | Forum Leader | | Join Date: Apr 2008 Location: San Antonio, TX (USA)
Posts: 2,608
| | | 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
|  | Site Addict | | Join Date: Jul 2008 Location: US of A
Posts: 587
| | | 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++ :)
|  | Forum Leader | | Join Date: Apr 2008 Location: San Antonio, TX (USA)
Posts: 2,608
| | | 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.
|  | Site Addict | | Join Date: Jul 2008 Location: US of A
Posts: 587
| | | 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?
|  | Forum Leader | | Join Date: Apr 2008 Location: San Antonio, TX (USA)
Posts: 2,608
| | | re: Make new form not show up in the taskbar |  | Similar .NET Framework bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,531 network members.
|