|
Prev: Hex Color to RGB
Next: VB.NET and VoIP>
From: Gordon on 7 Sep 2005 13:16 I'm an experienced VB6 programmer, but using VB.net for the first time. I'm trying to set up a FileListBox, and having trouble getting the control to display the files that are in the directory that is selected in the DirListBox control. I've done the following: Private Sub DirListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DirListBox1.SelectedIndexChanged FileListBox1.Path = DirListBox1.Path End Sub Is there something else that I need to do to get the files to display in FileListBox1? Thanks, Gordon
From: Ken Tucker [MVP] on 8 Sep 2005 06:30 Hi, I would use the vb power packs fileviewer and folderview controls instead of the vb6 controls. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbpowerpack.asp Ken -------------------- "Gordon" <Gordon(a)discussions.microsoft.com> wrote in message news:1D56991D-C4E6-4E7D-8C13-D8FFD1F4A5FE(a)microsoft.com... > I'm an experienced VB6 programmer, but using VB.net for the first time. > I'm > trying to set up a FileListBox, and having trouble getting the control to > display the files that are in the directory that is selected in the > DirListBox control. I've done the following: > > Private Sub DirListBox1_SelectedIndexChanged(ByVal sender As > System.Object, > ByVal e As System.EventArgs) Handles DirListBox1.SelectedIndexChanged > FileListBox1.Path = DirListBox1.Path > > End Sub > > Is there something else that I need to do to get the files to display in > FileListBox1? > > Thanks, > Gordon
|
Pages: 1 Prev: Hex Color to RGB Next: VB.NET and VoIP> |