PC Review


Reply
Thread Tools Rate Thread

Application should not show up in TaskBar

 
 
ajit goel
Guest
Posts: n/a
 
      18th Nov 2004
Hi;

We are developing an application which consists of many forms. When
the user navigates from one form to another form, both the forms show
up in the TaskBar. Due to this he can go to the taskbar and navigate
to the first form. I would like to disable this.

How can I make my application to not appear in the taskbar?? Comments
and suggestions are highly welcome.

Kind Regards;

Ajit Goel
 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      18th Nov 2004
Setting the Form.Text to String.Empty makes it not appear in the taskbar.
Search the archives as this has been discussed in the past.
Also the latest MSDN mag (available online) discusses an alternative
solution.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"ajit goel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi;
>
> We are developing an application which consists of many forms. When
> the user navigates from one form to another form, both the forms show
> up in the TaskBar. Due to this he can go to the taskbar and navigate
> to the first form. I would like to disable this.
>
> How can I make my application to not appear in the taskbar?? Comments
> and suggestions are highly welcome.
>
> Kind Regards;
>
> Ajit Goel



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      18th Nov 2004
Either set your "background" form invisible when you launch the new form, or
set it's Text property to "".
The running programs list is created from the window titles of all visible
top level windows.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"ajit goel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi;
>
> We are developing an application which consists of many forms. When
> the user navigates from one form to another form, both the forms show
> up in the TaskBar. Due to this he can go to the taskbar and navigate
> to the first form. I would like to disable this.
>
> How can I make my application to not appear in the taskbar?? Comments
> and suggestions are highly welcome.
>
> Kind Regards;
>
> Ajit Goel



 
Reply With Quote
 
Glyn Meek
Guest
Posts: n/a
 
      18th Nov 2004
Ajit...this is the method I use to 'bracket' each call to a new form
(.frm)...you have to get rid of the form name before you show it,otherwise
each active form's name shows up in the running programs list. This
technique avoids that and only leaves the main program's original name up
there. The variable MyAppName holds the name of the application, but you
could just as easily use a literal here.

Text = ""

frm.ShowDialog()

Text = MyAppName



"ajit goel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi;
>
> We are developing an application which consists of many forms. When
> the user navigates from one form to another form, both the forms show
> up in the TaskBar. Due to this he can go to the taskbar and navigate
> to the first form. I would like to disable this.
>
> How can I make my application to not appear in the taskbar?? Comments
> and suggestions are highly welcome.
>
> Kind Regards;
>
> Ajit Goel



 
Reply With Quote
 
ajit goel
Guest
Posts: n/a
 
      19th Nov 2004
Hi;

Many Thanks for all your kind replies and time. However the situation
for us is a bit different.

We have a FormFactory class which is responsible for creating forms,
caching and closing them. We are all averse to changing this class.
This FormFactory does not hide the parent form when a new form is
opened instead it opens the new form on top of the parent form. Due to
this, various forms show up in the form of stack in the TaskBar.

What we are looking out for is a kind of a property which we can
implement for each form, something like "ShowInTaskBar" property as in
Windows Application. If the ShowInTaskBar property is false for a form
it will not show up in the taskbar else it will show up.

Any pointers and suggestions on how to go about implementing this are
highly welcome.

Kind Regards;

Ajit Goel
 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      19th Nov 2004
Add a property to each Form - call it FormText. In it store the desired
Form Text. When you want to "hide" the form, set it's Text property to "".
Then you want it to show up, set it back to the FormText value.

--
<ctacke/>
www.opennetcf.org/sdf
Winner of the 2004 Pocket PC Magazine Best Software award


"ajit goel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi;
>
> Many Thanks for all your kind replies and time. However the situation
> for us is a bit different.
>
> We have a FormFactory class which is responsible for creating forms,
> caching and closing them. We are all averse to changing this class.
> This FormFactory does not hide the parent form when a new form is
> opened instead it opens the new form on top of the parent form. Due to
> this, various forms show up in the form of stack in the TaskBar.
>
> What we are looking out for is a kind of a property which we can
> implement for each form, something like "ShowInTaskBar" property as in
> Windows Application. If the ShowInTaskBar property is false for a form
> it will not show up in the taskbar else it will show up.
>
> Any pointers and suggestions on how to go about implementing this are
> highly welcome.
>
> Kind Regards;
>
> Ajit Goel



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show taskbar button on the taskbar-plz don't think I am jok =?Utf-8?B?Zm9yZ2V0bWVub3Q=?= Windows Vista Performance 1 1st Jan 2007 04:12 PM
Application don't show on taskbar =?Utf-8?B?TmFyb25ncml0?= Windows XP General 5 15th Jun 2005 06:46 AM
show application in taskbar =?Utf-8?B?Z3V5?= Microsoft C# .NET 2 29th Nov 2004 01:13 PM
taskbar not show in win 98 =?Utf-8?B?eXV5?= Microsoft Windows 2000 Terminal Server Clients 0 16th Oct 2003 09:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 PM.