Hi
I remove title bar in Windows Form so no nameis displayed ontask bar.How can i solve this.
Thnkx in advance.. |
| Sreenath G V Tuesday, May 27, 2008 11:06 AM |
Hi Sreenath G V,
How is your problem going on now? Has it been fixed?
First, I would presume some conditions for understanding your question.
If this sentence means that the entire icon of form has disappeared, I would like to suggest you check whether Form.ShowInTaskbar is set to false. Form will disappear from taskbar if Form.ShowInTaskbar == true.
If it is not what I guess, I think I need more information about how you set your form on its title bar.
Hope it helps.
Please feel free to let me know how your problem is going on.
Thanks.
Best wishes,
Jun Wang
|
| Jun Wang Tim Monday, June 02, 2008 3:59 AM |
Hi!
Actually, to display the form name in the taskbar, you have to set the Text property to a specific string. If you want to hide the control box and the title bar, but at the same time you want to show the formtext in the taskbar,use the FormBorderStyle property (change it to None). |
| ProfileUser2 Tuesday, June 03, 2008 8:43 PM |
If you still need that, then...
Make sure that: ShowInTaskbar=True ShowIcon=True Text="Your Form Text" 'add it through the properties, it will not show on the form
And put this code anywhere in your form:
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Const WS_CAPTION As Integer = &HC00000 Dim showText As System.Windows.Forms.CreateParams = MyBase.CreateParams showText.Style = (showText.Style And (Not WS_CAPTION)) showText.Height = Me.ClientSize.Height showText.Width = Me.ClientSize.Width Return showText End Get End Property
|
| ppmpUser Tuesday, August 05, 2008 5:10 PM |
Hi Sreenath G V,
How is your problem going on now? Has it been fixed?
First, I would presume some conditions for understanding your question.
If this sentence means that the entire icon of form has disappeared, I would like to suggest you check whether Form.ShowInTaskbar is set to false. Form will disappear from taskbar if Form.ShowInTaskbar == true.
If it is not what I guess, I think I need more information about how you set your form on its title bar.
Hope it helps.
Please feel free to let me know how your problem is going on.
Thanks.
Best wishes,
Jun Wang
|
| Jun Wang Tim Monday, June 02, 2008 3:59 AM |
Thankx for your valuable reply...
But my problem is i have made Control Box of the windows form false and removed Text property , so that title bar will not appear. In this situation how can i show the name at task bar at run time..
|
| Sreenath G V Tuesday, June 03, 2008 6:47 AM |
Hi!
Actually, to display the form name in the taskbar, you have to set the Text property to a specific string. If you want to hide the control box and the title bar, but at the same time you want to show the formtext in the taskbar,use the FormBorderStyle property (change it to None). |
| ProfileUser2 Tuesday, June 03, 2008 8:43 PM |
Hi!..
Thanks for your reply....but in my case im cant make FormBorderStyle property to None.
thats why im searching for the solution for this.
Please reply as soon as possible....
Adv thanks for your support...  |
| Sreenath G V Wednesday, June 04, 2008 4:15 AM |
At the moment I really don't know a better solution. You have to set the FormBorderStyle to None to hide the form title, butat the same time to show it in the taskbar at runtime |
| ProfileUser2 Wednesday, June 04, 2008 5:01 PM |
If you still need that, then...
Make sure that: ShowInTaskbar=True ShowIcon=True Text="Your Form Text" 'add it through the properties, it will not show on the form
And put this code anywhere in your form:
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Const WS_CAPTION As Integer = &HC00000 Dim showText As System.Windows.Forms.CreateParams = MyBase.CreateParams showText.Style = (showText.Style And (Not WS_CAPTION)) showText.Height = Me.ClientSize.Height showText.Width = Me.ClientSize.Width Return showText End Get End Property
|
| ppmpUser Tuesday, August 05, 2008 5:10 PM |
|
| ppmpUser Wednesday, August 06, 2008 9:14 PM |