Link to home
Start Free TrialLog in
Avatar of FOS-Bret
FOS-BretFlag for United States of America

asked on

Start app minimized in vb.net (2005) Compact Framework

Hey All,

I've found a few examples for this, but I can't get any of them to work and/or I don't understand them. I have a small compact framework vb.net (2005) app that's running on a Windows CE 5.0 device. I want to start the application minimized, but of course that's not an option in the WindowState property of the form.

Can someone walk me through doing this?

Thanks,
Bret
Avatar of kaufmed
kaufmed
Flag of United States of America image

Have you tried Me.Hide() in the form load event?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Hide()
End Sub

Open in new window

Avatar of FOS-Bret

ASKER

I have tried that, but when I do that, I can't get the app to come back to the front (with ALT-TAB).

There's a minimize button and it works perfectly. I just want to do what it does, but programatically.

Thanks,
Bret
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi,
Please fin the MSDN link already discussed,
http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/777da0d8-2930-46d1-b452-591b766b5d86

In that link there is an OpenNetCF solution can try out.

Regards

Deepu
I'm sorry for the delay in responding. I was called away from work for several days. My laptop died while I was away, so I'm now waiting for a restore to get my code back. I should have it tomorrow or the next day and I'll try the suggestions out a that time.

Thanks,
Bret
No worries  :)
This worked great and it was first. Thanks very much.
Bret
NP. Glad to help :)