Print Page | Close Window

Directory more than just C:\

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=2414
Printed Date: 27 November 2024 at 1:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Directory more than just C:\
Posted By: jonesb7
Subject: Directory more than just C:\
Date Posted: 20 June 2005 at 7:20pm
Just starting on the property grid and find it to be exactly what I have been looking for. I am having a little trouble with the directory flag constant. Even in the demo I can't find a directory besides the C: drive. Is there any way to see all the drives in the computer?



Replies:
Posted By: ianp
Date Posted: 21 June 2005 at 1:47am

In the VB sample, changing the following two lines of code should get you started

Private Sub Form_Load()

...

    Set ItemDirectory = Category.AddChildItem(PropertyItemString, "Directory", "D:\")

...

End Sub

Private Sub wndPropertyGrid_InplaceButtonDown(ByVal Item As XtremePropertyGrid.IPropertyGridItem)

...

        Set FolderItems = Shell.BrowseForFolder(Form1.hWnd, "Directories", 0, Item.Value)
...

End Sub




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net