Keeping Items out of Running Programs List

B

Brad Ball

Hi all,
I'm new to .NET CF programming, using VB.NET, and could use some help

I've got all the basics down for createing instances of, and showing
forms, either as windows or as modal dialogs. Great. Awesome.

I also know that to keep a new form or dialog from showing up in the
Running Programs list, I just set the form's Text property to an empty
string (myForm.Text = ""). But when I do that, I lose the Application
Name at the top of the screen next to the start menu (It goes back to
reading "Start"). This makes sense I guess since I set the Text
property to an empty string, but it's not what I want to happen. I
would like for my Application Name to continue to be displayed no
matter which form is currently being displayed. To do that, I have to
set each form's Text Property = My Application Name, but then I'm back
to multiple items showing up in the Running Programs list.

There HAS to be a way to accomplish what I'm trying to do (have my
Application Name shown in the "Taskbar" regardless of the form being
displayed, and only one listing in the Running Programs list). I've
noticed several other commercial applications that behave the way I am
describing (many of the MS built in apps, PocketQuicken, and others),
so I know it can be done, but what is the secret?

Most importantly, I'd like to know if there are any "Best Practices"
in reguard to this. How do most people deal with multiple forms in
their applications? If what I am trying to accomplish is not the best
way to go about things, or if there is a generally accepted practice,
then perhaps I need to change my thinking.

Thanks in advance,
Brad
 
C

Chris Tacke, eMVP

When a Form becomes active, change its Text to the app name, when it goes
inactive change it to an empty string.
 
P

Peter Foot [MVP]

This is the only technique, you have to ensure that you only set the
Form.Text on your forms which are not currently active and leave the
currently visible form as your one form you wish to show up in the running
programs list and hence display the caption correctly on screen also.

Peter

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

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top