AutoStart & Background

R

Roger Odermatt

Hello

I have a Application and want that it always run when i start my device.
What is the best way, purhaps create a shortcut in the AutoStart Directory?

And the Application is a WindowsForm App, how can run this in the
background, only set the form to minimize or that is the best way?

Thank you very much

cya Roger
 
P

Paul G. Tobey [eMVP]

I think that, if you search the archives of the two groups to which you sent
the message, you'll find the answers. Here's a link to GoogleGroups
advanced search that will get you started:

http://groups.google.com/advanced_search?q=&hl=en&

You might try searching the Compact Framework group first, since there are
issues with some start up methods and managed code applications that can
give you trouble. Maybe "start automatically boot" or something like that.

It turns out that causing the application to minimize on startup is harder
than getting it to start. There was a thread in the last two weeks in the
CF group about that. If you're flexible about having the form show in its
normal state briefly, then become minimized, there's no problem, but if
you're adamant that it never should be shown, you're in some difficulty.

Paul T.
 
S

Simon Hart [MVP]

A simpler way is to put a shortcut (lnk) in the start up directory off of
Windows this saves the need to write to the registry.
 
S

Simon Hart [MVP]

To run the app in the background, you'd need to write you're own message pump
class instead of using the framework's Application class. As you have
probebly found, Application will show the form for you which is out of your
control.

OpenNETCF has an implementation of Application, you could get this source
and alter the class or they might have released a new version that allows you
to specify in the constructor whether to hide/show your form. They talked
about this enhancement a few months ago - so worth checking if available yet.
 
R

Roger Odermatt

Thank very much for all the inputs.

For the AutoStart i have found a solution, but now i have the problem that
the app start but i want set in the background, so that the user not see the
app.

Is it possible to set a app in the background?

Thank you very much

cya Roger

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:%[email protected]...
 
P

Paul G. Tobey [eMVP]

Did you read my initial response to your post? Take a look at it...

Paul T.

Roger Odermatt said:
Thank very much for all the inputs.

For the AutoStart i have found a solution, but now i have the problem that
the app start but i want set in the background, so that the user not see
the app.

Is it possible to set a app in the background?

Thank you very much

cya Roger

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag
I think that, if you search the archives of the two groups to which you
sent the message, you'll find the answers. Here's a link to GoogleGroups
advanced search that will get you started:

http://groups.google.com/advanced_search?q=&hl=en&

You might try searching the Compact Framework group first, since there
are issues with some start up methods and managed code applications that
can give you trouble. Maybe "start automatically boot" or something like
that.

It turns out that causing the application to minimize on startup is
harder than getting it to start. There was a thread in the last two
weeks in the CF group about that. If you're flexible about having the
form show in its normal state briefly, then become minimized, there's no
problem, but if you're adamant that it never should be shown, you're in
some difficulty.

Paul T.
 
S

Simon Hart [MVP]

Both Paul and myself have suggested ways of starting your application in the
background."To run the app in the background, you'd need to write you're own message
pump
class instead of using the framework's Application class. As you have
probebly found, Application will show the form for you which is out of your
control.

OpenNETCF has an implementation of Application, you could get this source
and alter the class or they might have released a new version that allows you
to specify in the constructor whether to hide/show your form. They talked
about this enhancement a few months ago - so worth checking if available yet."

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Roger Odermatt said:
Thank very much for all the inputs.

For the AutoStart i have found a solution, but now i have the problem that
the app start but i want set in the background, so that the user not see the
app.

Is it possible to set a app in the background?

Thank you very much

cya Roger

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:%[email protected]...
I think that, if you search the archives of the two groups to which you
sent the message, you'll find the answers. Here's a link to GoogleGroups
advanced search that will get you started:

http://groups.google.com/advanced_search?q=&hl=en&

You might try searching the Compact Framework group first, since there are
issues with some start up methods and managed code applications that can
give you trouble. Maybe "start automatically boot" or something like
that.

It turns out that causing the application to minimize on startup is harder
than getting it to start. There was a thread in the last two weeks in the
CF group about that. If you're flexible about having the form show in its
normal state briefly, then become minimized, there's no problem, but if
you're adamant that it never should be shown, you're in some difficulty.

Paul T.
 

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