Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Using Icons stroed in the Shell32.dll Pin
Dave Kreskowiak11-Feb-06 15:29
mveDave Kreskowiak11-Feb-06 15:29 
You don't!! You use the Extract icon method to get the icons out of the file, just like Shell32 does. Shell32 won't pick the icon for your, but it will tell you what type each drive is. You then have to use that information to pick the icon to show.

What do you need to determine the drive type? Easy! Call the Win32 Api function <a href="http://msdn.microsoft.com/library/en-us/fileio/fs/getdrivetype.asp?frame=true" rel="nofollow">GetDriveType</a>[<a href="http://msdn.microsoft.com/library/en-us/fileio/fs/getdrivetype.asp?frame=true" target="_blank" rel="nofollow" title="New Window">^</a>], or <a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/RealDriveType.asp?frame=true" rel="nofollow">RealDriveType</a>[<a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/RealDriveType.asp?frame=true" target="_blank" rel="nofollow" title="New Window">^</a>].

You can find the P/Invoke Declares on P/Invoke.net if you have trouble figuring it out, or you could just ask...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 21:29 Saturday 11th February, 2006
QuestionVBA - how to import outlook express to access Pin
keita0011-Feb-06 1:49
keita0011-Feb-06 1:49 
AnswerRe: VBA - how to import outlook express to access Pin
Dave Kreskowiak11-Feb-06 8:18
mveDave Kreskowiak11-Feb-06 8:18 
QuestionCrystal Report Problem Pin
Sajid Sheikh Ali11-Feb-06 1:18
Sajid Sheikh Ali11-Feb-06 1:18 
QuestionData Grid View Pin
Sajid Sheikh Ali11-Feb-06 1:13
Sajid Sheikh Ali11-Feb-06 1:13 
AnswerRe: Data Grid View Pin
Dave Kreskowiak11-Feb-06 8:06
mveDave Kreskowiak11-Feb-06 8:06 
Questioncrystal reports Pin
microuser_200010-Feb-06 22:19
microuser_200010-Feb-06 22:19 
AnswerRe: crystal reports Pin
alien viper10-Feb-06 22:30
alien viper10-Feb-06 22:30 
GeneralRe: crystal reports Pin
microuser_200011-Feb-06 1:06
microuser_200011-Feb-06 1:06 
QuestionProblem to call .KBD in VB6 Pin
justzain10-Feb-06 20:24
justzain10-Feb-06 20:24 
AnswerRe: Problem to call .KBD in VB6 Pin
progload11-Feb-06 12:07
progload11-Feb-06 12:07 
QuestionPOPING NEW FORM THROUGH Timers. Pin
blucas200510-Feb-06 19:47
blucas200510-Feb-06 19:47 
AnswerRe: POPING NEW FORM THROUGH Timers. Pin
Dave Kreskowiak11-Feb-06 8:03
mveDave Kreskowiak11-Feb-06 8:03 
GeneralRe: POPING NEW FORM THROUGH Timers. Pin
blucas200511-Feb-06 22:16
blucas200511-Feb-06 22:16 
GeneralRe: POPING NEW FORM THROUGH Timers. Pin
Dave Kreskowiak12-Feb-06 2:10
mveDave Kreskowiak12-Feb-06 2:10 
Questionhow to get username of the system in net work Pin
mamatharaghu10-Feb-06 19:08
mamatharaghu10-Feb-06 19:08 
AnswerRe: how to get username of the system in net work Pin
Dave Kreskowiak11-Feb-06 7:56
mveDave Kreskowiak11-Feb-06 7:56 
GeneralRe: how to get username of the system in net work Pin
mamatharaghu12-Feb-06 19:36
mamatharaghu12-Feb-06 19:36 
GeneralRe: how to get username of the system in net work Pin
Dave Kreskowiak13-Feb-06 16:51
mveDave Kreskowiak13-Feb-06 16:51 
QuestionHow do i enherit forms? Pin
Polymorpher10-Feb-06 15:14
Polymorpher10-Feb-06 15:14 
AnswerRe: How do i enherit forms? Pin
Rana Muhammad Javed Khan10-Feb-06 18:16
Rana Muhammad Javed Khan10-Feb-06 18:16 
GeneralRe: How do i enherit forms? Pin
Polymorpher11-Feb-06 7:49
Polymorpher11-Feb-06 7:49 
GeneralRe: How do i enherit forms? Pin
Ray Cassick11-Feb-06 8:15
Ray Cassick11-Feb-06 8:15 
GeneralRe: How do i enherit forms? Pin
Polymorpher12-Feb-06 22:15
Polymorpher12-Feb-06 22:15 
GeneralRe: How do i enherit forms? Pin
Rana Muhammad Javed Khan12-Feb-06 19:14
Rana Muhammad Javed Khan12-Feb-06 19:14 

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.