.net cf - launch explorer programmatically

前端 未结 2 1784
滥情空心
滥情空心 2021-01-22 19:08

I am trying to launch explorer programmatically from my .Net CF Window application. But its throwing win32 exception. I have used same kind of code in desktop .Net version, and

相关标签:
2条回答
  • 2021-01-22 19:37

    In order to kick off a web browser navigation to a URL, I have always directly set the argument of the Start method to the url itself. Please try the following to see if it helps in .NET CF"

    Process.Start("http://www.yahoo.com", null);

    i.e.

    Process.Start([url_variable], null);

    0 讨论(0)
  • 2021-01-22 19:44

    Maybe you should give it a program name to start? "\" is not an application. Something like this is probably more likely to yield success:

    Process.Start("\\windows\\explorer.exe", null); 
    
    0 讨论(0)
提交回复
热议问题