Visual Basic Vb.Net
Freakin
Messages postés
77
Date d'inscription
Statut
Membre
Dernière intervention
-
eriiic Messages postés 24603 Date d'inscription Statut Contributeur Dernière intervention -
eriiic Messages postés 24603 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
Voila mon problème est très simple :
Private Sub LinkLabel6_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel6.LinkClicked
Try
If Not Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) Then
Form12.Show()
Me.Close()
ElseIf Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) Then
Form5.Show()
Me.Close()
End If
Catch ex As Exception
End Try
End Sub
----------------------------------------------------
Voila, j'essaie e dire au Logiciel si il existe " Licence " il fait apparaitre une form sinon il fait apparaitre une autre form, Mais cela ne fonctionne pas ! :'(
Sa me dit : " Impossible de convertir la chaine (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) en type Interger "
S'il vous plais aidez moi :'(
Voila mon problème est très simple :
Private Sub LinkLabel6_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel6.LinkClicked
Try
If Not Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) Then
Form12.Show()
Me.Close()
ElseIf Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) Then
Form5.Show()
Me.Close()
End If
Catch ex As Exception
End Try
End Sub
----------------------------------------------------
Voila, j'essaie e dire au Logiciel si il existe " Licence " il fait apparaitre une form sinon il fait apparaitre une autre form, Mais cela ne fonctionne pas ! :'(
Sa me dit : " Impossible de convertir la chaine (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments & "\" & "Licence.txt")) en type Interger "
S'il vous plais aidez moi :'(
A voir également:
- Visual Basic Vb.Net
- Visual basic - Télécharger - Langages
- Visual basic editor - Télécharger - Langages
- Visual petanque - Télécharger - Sport
- Microsoft 365 basic - Accueil - Microsoft Office
- Visual c++ 2019 - Guide