Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
.NET Framework
Pocket pc - lanciare un programma
martedì 22 agosto 2006 - 18.53
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
fonzinieto
Profilo
| Newbie
9
messaggi | Data Invio:
mar 22 ago 2006 - 18:53
Ciao a tutti,
mi serve sapere quale comando posso utilizzare con vb.net per una applicazione per pocket pc,
che faccia attivare un programma sul pocket pc.
L' obbiettivo è quello di attivare il pocket pc con un programma vb.net che caricato all' avvio
evidenzi il form e da qui con una icona a un pulsante attivare un programma "telnet" (es.: telnet.exe)
Questo serve per far si che gli utenti non utilizzino giochi o quantaltro programma installato sul pocke pc
PS.: il comando utilizza per applicazioni windows non è supportato da compat framework,
non si può usare System.Diagnostics.Process.Start("telnet.exe")
Grazie in anticipo
Roberto
Brainkiller
Profilo
| Guru
7.999
messaggi | Data Invio:
gio 24 ago 2006 - 11:36
>mi serve sapere quale comando posso utilizzare con vb.net per
>una applicazione per pocket pc,
>che faccia attivare un programma sul pocket pc.
>L' obbiettivo è quello di attivare il pocket pc con un programma
>vb.net che caricato all' avvio
>evidenzi il form e da qui con una icona a un pulsante attivare
>un programma "telnet" (es.: telnet.exe)
Infatti risultava anche a me che non fosse possibile. Credo che devi usare l'interoperabilità ed usare le chiamate native per avviare il programma.
Oppure provare a vedere:
http://www.opennetcf.org/home.ocf
Oppure ci sono delle chiavi nel registro del PocketPC in cui puoi inserire dei software da avviare all'avvio tipo Esecuzione automatica di Windows.
Oppure usare tools di terze parti per fare queste operazioni di modifica chiavi e impostazioni di software da avviare all'avvio.
Ciao
David De Giacomi | Microsoft MVP
http://blogs.dotnethell.it/david/
fonzinieto
Profilo
| Newbie
9
messaggi | Data Invio:
ven 25 ago 2006 - 14:59
Ciao,
ho trovato dei programmi che fanno quello che sto cercando di fare con il codice , però mi
sembra brutto demordere con il problema ...
Ho trovato questo esempio sulla guida di vb.net 2003, ti sembra possibile che non si riesca ad utilizzare ?
Roberto
[Visual Basic]
Imports System
Imports System.Diagnostics
Imports System.ComponentModel
Namespace MyProcessSample
_
'/ <summary>
'/ Shell for the sample.
'/ </summary>
Public Class MyProcess
'/ <summary>
'/ Opens the Internet Explorer application.
'/ </summary>
Public Sub OpenApplication(myFavoritesPath As String)
' Start Internet Explorer. Defaults to the home page.
Process.Start("IExplore.exe")
' Display the contents of the favorites folder in the browser.
Process.Start(myFavoritesPath)
End Sub 'OpenApplication
'/ <summary>
'/ Opens urls and .html documents using Internet Explorer.
'/ </summary>
Public Sub OpenWithArguments()
' url's are not considered documents. They can only be opened
' by passing them as arguments.
Process.Start("IExplore.exe", "www.northwindtraders.com")
' Start a Web page using a browser associated with .html and .asp files.
Process.Start("IExplore.exe", "C:\myPath\myFile.htm")
Process.Start("IExplore.exe", "C:\myPath\myFile.asp")
End Sub 'OpenWithArguments
'/ <summary>
'/ Uses the ProcessStartInfo class to start new processes, both in a minimized
'/ mode.
'/ </summary>
Public Sub OpenWithStartInfo()
Dim startInfo As New ProcessStartInfo("IExplore.exe")
startInfo.WindowStyle = ProcessWindowStyle.Minimized
Process.Start(startInfo)
startInfo.Arguments = "www.northwindtraders.com"
Process.Start(startInfo)
End Sub 'OpenWithStartInfo
Public Shared Sub Main()
' Get the path that stores favorite links.
Dim myFavoritesPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Favorites)
Dim myProcess As New MyProcess()
myProcess.OpenApplication(myFavoritesPath)
myProcess.OpenWithArguments()
myProcess.OpenWithStartInfo()
End Sub 'Main
End Class 'MyProcess
End Namespace 'MyProcessSample
Brainkiller
Profilo
| Guru
7.999
messaggi | Data Invio:
lun 28 ago 2006 - 17:47
>Ciao,
>ho trovato dei programmi che fanno quello che sto cercando di
>fare con il codice , però mi
>sembra brutto demordere con il problema ...
Ma quale guida ?
Attenzione forse tu stai parlando di esempi Windows Forms e non PocketPC.
Sono due cose nettamente diverse.
Ciao
David De Giacomi | Microsoft MVP
http://blogs.dotnethell.it/david/
fonzinieto
Profilo
| Newbie
9
messaggi | Data Invio:
lun 4 set 2006 - 21:22
Ciao,
il tutto applicato a vb 2005 funziona su 2003 non sono riuscito
sempre in ambito pocket pc
Roberto
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !