Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

Bring Application Back To Front in WM5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
morris.logan@gmail.com - 28 Mar 2007 16:35 GMT
Folks,

I am hoping someone can give me hand with a problem I am having.

I have an application which acts as a wrapper\launcher for another
application.

App1 collects info from the user and is used to control access and
data flows tp app2.

When App2 is launched it is displayed to user, but at times, if the
user closes app2 they are returned to the file explorer or the today
screen in WM5 and not app1 as expected. This appears to happen is the
user changes the configuration of app2 which causes the screen to
redraw itself and while it does this, it shows the last application
which was running, e.g File Explorer etc.

I have tried using BringToFront() and Show() commands when control is
returned to App1 and this has no effect on the problem.

Has any one encountered a problem like this and more importantly how
to work round this? As a footnote, I am working with WM5, VB.Net 2k5
and Compact Framework 2 SP1.

Cheers

Morris
Fabien - 28 Mar 2007 16:59 GMT
Hi,

You can call FindWindow to get the handle of your window, then call
SetForegroundWindow with the handle in parameter. You must import
these functions with dllimport, I don't have the code in VB, but there
are a lot of examples on the Internet.

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

On 28 mar, 17:35, morris.lo...@gmail.com wrote:
> Folks,
>
[quoted text clipped - 23 lines]
>
> Morris
Sachin Palewar - 30 Mar 2007 19:04 GMT
App1 should be running in that case, its probably minimised. In
windows mobile if you try to launch a minimised application, it comes
to foreground. I think you can just launch app1 again using the same
method you used to launch app2.

Hope it helps,

Regards,

Sachin Palewar
(Certified Scrum Master)

Palewar Techno Solutions
(Mobile Solutions for Your Business)
www.palewar.com

On Mar 28, 8:35 pm, morris.lo...@gmail.com wrote:
> Folks,
>
[quoted text clipped - 23 lines]
>
> Morris

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.