Oppure

Loading
13/04/10 1:08
MrPaky
Ciao a tutti,
mi servirebbero due aiuti.

1) come si fa a firmare un'applicazione in modo che quando si avvia l'applicazione con il modo amministratore non dia autore sconosciuto?

2) come faccio a far visualizzare parte del percorso di un file all'utente in un label? ad es. ho un file .txt nel percorso C:\User\UserName\Documents\NomeFile.txt come si fa a far si che venga visualizzato come C:\...UserName\Documents\NomeFile.txt?

Grazie a tutti per l'aiuto! :)

:) ciao ciao
aaa
13/04/10 17:24
Il Totem
1) Hai provato a modificare AssemblyInfo.vb? E' un file di progettazione che si trova nella cartella My Project. Si può modificare anche nelle proprietà di progetto dalla scheda Application > Assembly Informations.

2) Ad esempio:
Function ShortenPath(ByVal Path As String, ByVal ShownDirectories As Int32) As String
   Dim Parts() As String = Path.Split("\")

   If (Parts.Count <= 2) Or (Parts.Count - 2 < ShownDirectories) Then
      Return Path
   End If

   Dim Result As String

   Result = Parts(0)
   Result &= "\...\"
   If ShownDirectories > 0 Then
      For I As Int32 = Parts.Length - 1 - DirectoriesShown To Parts.Length - 2
         Result &= Parts(I) & "\"
      Next
   End If
   Result &= Parts(Parts.Length - 1)

   Return Result
End Function

Se Path = "C:\Users\Totem\Documenti\Visual Studio 2008\Projects\THex Editor\THex Editor.vbproj", hai:
ShortenPath(Path, 0) = "C:\...\THex Editor.vbproj"
ShortenPath(Path, 1) = "C:\...\THex Editor\THex Editor.vbproj"
ShortenPath(Path, 2) = "C:\...\Projects\THex Editor\THex Editor.vbproj"
...
aaa
13/04/10 18:34
MrPaky
Grazie, quello che intendevo io e quello di firmare il codice (code sign). Comunque grazie l'ho stesso per l'aiuto. Totem per avere la tua Guida in formato PDF oppure cartaceo (ovviamente pagando) come s fa? mi servirebbe molto poiché come connessione non è il massimo.


Grazie
aaa
16/04/10 8:35
Il Totem
Dovresti mandarmi una mail, poi ti rispedisco la guida.

P.S.: si scrive "lo" stesso.
aaa