Ceci était vrais en VB6, y a t'il son homonyme en VB.NET ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
 
            Dim sURL As String
 
            sURL = "ftp://ftp.lesite.be/repertoir/"
            ShellExecute(hwnd, "open", sURL, vbNullString, vbNullString, 2)