Click here to Skip to main content
15,885,244 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCom Interop & Deployment Pin
Geopsaros25-Oct-04 7:04
Geopsaros25-Oct-04 7:04 
GeneralSimple String Question Pin
cwayman25-Oct-04 5:40
cwayman25-Oct-04 5:40 
GeneralRe: Simple String Question Pin
Mike Ellison25-Oct-04 6:17
Mike Ellison25-Oct-04 6:17 
GeneralRe: Simple String Question Pin
Mekong River25-Oct-04 21:18
Mekong River25-Oct-04 21:18 
GeneralRe: Simple String Question Pin
cwayman25-Oct-04 21:45
cwayman25-Oct-04 21:45 
Generaldata grid control in visual basic.net Pin
Kumar0925-Oct-04 4:28
Kumar0925-Oct-04 4:28 
GeneralRe: data grid control in visual basic.net Pin
Desi Bravo31-Oct-04 3:05
Desi Bravo31-Oct-04 3:05 
GeneralNetwork drive in a TreeView Pin
Brad Fackrell25-Oct-04 2:52
Brad Fackrell25-Oct-04 2:52 
Can anybody tell me how to list a network drive in a TreeView?

I currently list my drives this way:

Dim driveList() As String<br />
driveList = System.Environment.GetLogicalDrives()<br />
treeDirStructure.BeginUpdate()<br />
Dim x As Integer<br />
For x = 0 To driveList.Length - 1<br />
    Dim tvn As New TreeNode<br />
    tvn.Text = driveList(x)<br />
    Select Case GetDriveType(driveList(x))<br />
        Case DRIVE_REMOVABLE<br />
            tvn.ImageIndex = 0<br />
            tvn.SelectedImageIndex = 0<br />
        Case DRIVE_FIXED<br />
            tvn.ImageIndex = 1<br />
            tvn.SelectedImageIndex = 1<br />
        Case DRIVE_CDROM<br />
            tvn.ImageIndex = 2<br />
            tvn.SelectedImageIndex = 2<br />
        Case Else<br />
            tvn.ImageIndex = 0<br />
            tvn.SelectedImageIndex = 0<br />
    End Select<br />
    treeDirStructure.Nodes.Add(tvn)<br />
Next x<br />
treeDirStructure.Nodes.Add("C:\Targets")<br />
treeDirStructure.EndUpdate()


..but I can’t figure out how to list a network drive or other things like ‘My Computer’.

Thanks.
Brad
QuestionHow to combine VB6.0 and C++ ??? Pin
john_tran24-Oct-04 19:33
john_tran24-Oct-04 19:33 
AnswerRe: How to combine VB6.0 and C++ ??? Pin
incubusfan24-Oct-04 23:58
incubusfan24-Oct-04 23:58 
GeneralRe: How to combine VB6.0 and C++ ??? Pin
Anonymous25-Oct-04 2:35
Anonymous25-Oct-04 2:35 
GeneralRe: How to combine VB6.0 and C++ ??? Pin
john_tran25-Oct-04 3:13
john_tran25-Oct-04 3:13 
GeneralExporting VB.Net DLLs to VB6 Pin
Fade (Amit BS)24-Oct-04 18:46
Fade (Amit BS)24-Oct-04 18:46 
GeneralRe: Exporting VB.Net DLLs to VB6 Pin
Mekong River24-Oct-04 21:25
Mekong River24-Oct-04 21:25 
GeneralRe: Exporting VB.Net DLLs to VB6 Pin
Fade (Amit BS)25-Oct-04 19:54
Fade (Amit BS)25-Oct-04 19:54 
GeneralJava Script doesn't run before server.transfer Pin
mtm8800123-Oct-04 17:58
mtm8800123-Oct-04 17:58 
GeneralRe: Java Script doesn't run before server.transfer Pin
Dave Kreskowiak24-Oct-04 14:56
mveDave Kreskowiak24-Oct-04 14:56 
Generalediting a winforms datagrid Pin
bartwinsimpson23-Oct-04 17:45
bartwinsimpson23-Oct-04 17:45 
GeneralLogging into Admin Account from limited user account. Pin
23-Oct-04 16:43
suss23-Oct-04 16:43 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak24-Oct-04 14:53
mveDave Kreskowiak24-Oct-04 14:53 
GeneralRe: Logging into Admin Account from limited user account. Pin
Mekong River24-Oct-04 15:09
Mekong River24-Oct-04 15:09 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak25-Oct-04 2:10
mveDave Kreskowiak25-Oct-04 2:10 
GeneralRe: Logging into Admin Account from limited user account. Pin
Member 145028524-Oct-04 17:08
Member 145028524-Oct-04 17:08 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak25-Oct-04 2:11
mveDave Kreskowiak25-Oct-04 2:11 
GeneralPeep2peer, choose ports for TCP Pin
[DK]KiloDunse23-Oct-04 14:30
[DK]KiloDunse23-Oct-04 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.