Visual Basic Vb.Net

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 :'(

2 réponses

  • Votes
  • Date
  • Date décroissante
  1. Bonjour
    Je ne connais pas Vb.net, mais à tout hasard, "Exists" s'écrit -il au pluriel?
    bonne journée
    1. Oui sa s'écrit au pluriel ..
  2. Contributeur
    Bonjour,

    Totalement inutile de poser 3 fois la même question.
    En plus ça a l'effet inverse : on fuit !
    eric