Solved

.NET Compact Framework replacement for VB's shell

Posted on 2004-10-25
366 Views
Last Modified: 2007-12-19
Hi Experts,

I have a .NET application that runs on PocketPC and CE.NET devices. I am checking to see whether the device was hard reset (system time < last time program ran) and if this is the case i want to execute the control panel to change the system date and time using " ctlpnl.exe \windows\cplmain.cpl,13 ". The problem is that I cannot find the API call that replaces VB's Shell() in .NET or at least another method of executing an outside application on the Compact Framework.

Cheers,

Owen W.
0
Question by:owigg
    4 Comments
     
    LVL 34

    Expert Comment

    by:flavo
    did you try microsoft.VisualBasic.Shell ??

    Dave
    0
     

    Author Comment

    by:owigg
    Thanks Dave, yeah I did, Its not supported in the Compact Framework.
    0
     
    LVL 34

    Accepted Solution

    by:
    if you want to open a file in the default app maybe try

    System.Diagnostics.Process.Start(FilePath)
    0
     

    Author Comment

    by:owigg
    System.Diagnostics.Process isnt part of the Compact Framework either but thankfully the OpenNETCF Smart Device Framework has implemented the missing class. Thanks Dave.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    877 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now