Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Directory more than just C:\
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Directory more than just C:\

 Post Reply Post Reply
Author
Message
jonesb7 View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jonesb7 Quote  Post ReplyReply Direct Link To This Post Topic: Directory more than just C:\
    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?
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.155 seconds.