donc j'ai crée un post pour demander comment faire pointer un repertoire en utilisant un opendialogfile. (http://www.developpez.net/forums/viewtopic.php?t=189102)
on m'a fourni une classe en c, petit probleme je code en vb.net
donc j'ai fais une conversion du code en vb.net via les outils qu'on trouve sur le site et voila le resultat
maintenant j'ai des erreurs au point indiqué et je ne sais pas quoi lui fournir.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33Namespace GestionStock '/ <summary> '/ This class helps to display the directory structure in the folder '/ As the FolderBrowser is inaccessible we have to inherit from the '/ FileNameBroswer and then call the method '/ </summary> Public Class FolderDialog Inherits FolderNameEditor' <== erreur1 Private path As String Public ReadOnly Property Path() As String '<== erreur2 Get Return path End Get End Property Public Sub New() End Sub Public Function DisplayDialog() As DialogResult Return DisplayDialog("Choisissez un répertoire :") End Function Public Function DisplayDialog(ByVal description As String) As DialogResult Dim f As FolderBrowser = New FolderBrowser() '<== erreur3 f.Description = description f.StartLocation = FolderBrowserFolder.Desktop '<== erreur4 Dim d As DialogResult = f.ShowDialog() path = f.DirectoryPath Return d End Function End Class End Namespace
Auriez vous l'obligeance de m'apporter votre aide car je patauge
@+
Hirochirak
ps : j'ai deja exposer mon probleme dans l'autre post mais le titre n'ayant aucun rapport avec je crois que ca passera inapercu







Répondre avec citation






Partager