Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
GeneralRe: Urgent Pin
leppie31-May-06 1:52
leppie31-May-06 1:52 
AnswerRe: Urgent Pin
J4amieC31-May-06 2:18
J4amieC31-May-06 2:18 
GeneralRe: Urgent Pin
led mike31-May-06 4:59
led mike31-May-06 4:59 
Questionanalyze text Pin
abdelhameed8131-May-06 0:20
abdelhameed8131-May-06 0:20 
AnswerRe: analyze text Pin
leppie31-May-06 2:10
leppie31-May-06 2:10 
Questionadding a .cs file programatically in C#.net Pin
compdesign31-May-06 0:08
compdesign31-May-06 0:08 
AnswerRe: adding a .cs file programatically in C#.net Pin
sathish s31-May-06 1:35
sathish s31-May-06 1:35 
QuestionRetrieving correct indexed icon from iconfiles / exefiles Pin
Larantz30-May-06 23:17
Larantz30-May-06 23:17 
Hi everyone.

Still working on my CustomGridColumnStyle class.

So far I'm traversing the registry correctly, and I retrieve the correct
exe-file or dll-file that contains icons for a specific filetype.

Only problem is that for instance the icons for .txt files is located in shell32.dll
at index -152, or atleast I believe it's index -152 due to registryvalue: "%SystemRoot%\system32\shell32.dll,-152"
in subkey: "DefaultIcon", and I'm not pointing to that index so I just get the icon for dll-files when I display the txt-files...

For extracting the icon I use Win32.SHGetFileInfo(..), and I'm wondering:

Is there any way of specifying which icon you want extraced? By index perhaps?

hImgSmall = Win32.SHGetFileInfo(filePath, 0, ref shinfo,
					(uint)Marshal.SizeOf(shinfo),
					Win32.SHGFI_ICON |
					Win32.SHGFI_SMALLICON);


I think the Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON points to some kind of index though.

If anyone has any knowledge of Win32.SHGetFileInfo I'd really appreciate some feedback.

-Larantz-
AnswerRe: Retrieving correct indexed icon from iconfiles / exefiles [modified] Pin
Larantz31-May-06 0:54
Larantz31-May-06 0:54 
Questionadd controls to TabPage Pin
rcwoods30-May-06 23:06
rcwoods30-May-06 23:06 
AnswerRe: add controls to TabPage Pin
rah_sin30-May-06 23:20
professionalrah_sin30-May-06 23:20 
AnswerRe: add controls to TabPage Pin
Mairaaj Khan31-May-06 0:04
professionalMairaaj Khan31-May-06 0:04 
QuestionService starts and stops immediately Pin
israfel30-May-06 23:06
israfel30-May-06 23:06 
QuestionHow to Hide A Process in TaskManager ?? Pin
hdv21230-May-06 23:02
hdv21230-May-06 23:02 
AnswerRe: How to Hide A Process in TaskManager ?? Pin
Guffa31-May-06 0:14
Guffa31-May-06 0:14 
QuestionNorminv Function in C# Pin
Joachim Maes30-May-06 22:53
Joachim Maes30-May-06 22:53 
AnswerRe: Norminv Function in C# Pin
FarhanShariff16-Apr-14 23:13
professionalFarhanShariff16-Apr-14 23:13 
QuestionHow to know the parent of Form class Pin
Maddie from Dartford30-May-06 21:55
Maddie from Dartford30-May-06 21:55 
AnswerRe: How to know the parent of Form class Pin
stancrm30-May-06 22:22
stancrm30-May-06 22:22 
AnswerRe: How to know the parent of Form class Pin
subburaj.sabapathy31-May-06 2:38
subburaj.sabapathy31-May-06 2:38 
QuestionInvalid Character in XmlDocument Pin
malikjhangirahmed@hotmail.com30-May-06 21:10
malikjhangirahmed@hotmail.com30-May-06 21:10 
AnswerRe: Invalid Character in XmlDocument Pin
NaNg1524131-May-06 1:09
NaNg1524131-May-06 1:09 
QuestionListbox Item Selection Pin
Brendan Vogt30-May-06 21:01
Brendan Vogt30-May-06 21:01 
AnswerRe: Listbox Item Selection Pin
malikjhangirahmed@hotmail.com30-May-06 21:19
malikjhangirahmed@hotmail.com30-May-06 21:19 
QuestionRe: Listbox Item Selection Pin
Brendan Vogt30-May-06 21:28
Brendan Vogt30-May-06 21:28 

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.