Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delete Query String in Oledb Pin
Colin Angus Mackay17-Jul-05 1:23
Colin Angus Mackay17-Jul-05 1:23 
Generalredirect shortcut key Pin
Sabry190516-Jul-05 23:54
Sabry190516-Jul-05 23:54 
GeneralRe: redirect shortcut key Pin
Alex Korchemniy17-Jul-05 14:32
Alex Korchemniy17-Jul-05 14:32 
GeneralRe: redirect shortcut key Pin
Sabry190517-Jul-05 21:20
Sabry190517-Jul-05 21:20 
Generalgetting registered file extensions Pin
g00fyman16-Jul-05 20:53
g00fyman16-Jul-05 20:53 
GeneralRe: getting registered file extensions Pin
g00fyman17-Jul-05 2:05
g00fyman17-Jul-05 2:05 
GeneralRe: getting registered file extensions Pin
g00fyman17-Jul-05 3:34
g00fyman17-Jul-05 3:34 
GeneralSHGetFileInfo icon and dispose Pin
CiNN16-Jul-05 17:03
CiNN16-Jul-05 17:03 
I am using a dllimport of SHGetFileInfo to retrieve a file icon, and then add it to an image list.
is there something i need to disposse ?


this line
<br />
this.iconsListSmall.Images.Add( FileGetIcon( fi.FullName, true ) );<br />


and this function

<br />
        public static Icon FileGetIcon( string strPath, bool bSmall )<br />
        {<br />
            <br />
            SHFILEINFO info = new SHFILEINFO( true );<br />
            uint cbFileInfo = ( uint )Marshal.SizeOf( info );<br />
            SHGFI flags;<br />
            if ( bSmall )<br />
                flags = SHGFI.Icon | SHGFI.SmallIcon | SHGFI.UseFileAttributes;<br />
            else<br />
                flags = SHGFI.Icon | SHGFI.LargeIcon | SHGFI.UseFileAttributes;<br />
<br />
            SHGetFileInfo( strPath, 256, out info, cbFileInfo, flags );<br />
            return System.Drawing.Icon.FromHandle( info.hIcon );<br />
        }<br />

GeneralRe: SHGetFileInfo icon and dispose Pin
Alex Korchemniy17-Jul-05 14:35
Alex Korchemniy17-Jul-05 14:35 
GeneralRe: SHGetFileInfo icon and dispose Pin
CiNN17-Jul-05 15:06
CiNN17-Jul-05 15:06 
QuestionTake screenshots using C#? Pin
Lord Kixdemp16-Jul-05 16:25
Lord Kixdemp16-Jul-05 16:25 
AnswerRe: Take screenshots using C#? Pin
bneacetp16-Jul-05 17:02
bneacetp16-Jul-05 17:02 
GeneralRe: Take screenshots using C#? Pin
Lord Kixdemp16-Jul-05 18:45
Lord Kixdemp16-Jul-05 18:45 
QuestionPaint control? Pin
Lord Kixdemp16-Jul-05 16:18
Lord Kixdemp16-Jul-05 16:18 
AnswerRe: Paint control? Pin
Tomas Petricek17-Jul-05 1:53
Tomas Petricek17-Jul-05 1:53 
GeneralRe: Paint control? Pin
Lord Kixdemp17-Jul-05 6:11
Lord Kixdemp17-Jul-05 6:11 
GeneralAsynchronous Comms Pin
Anonymous16-Jul-05 13:15
Anonymous16-Jul-05 13:15 
Generalbandwidth usage Pin
Mohamad Al Husseiny16-Jul-05 10:37
Mohamad Al Husseiny16-Jul-05 10:37 
GeneralHelp with client server apps, please! Pin
Member 161964216-Jul-05 9:26
Member 161964216-Jul-05 9:26 
Generalauto select tree node Pin
Anonymous16-Jul-05 9:19
Anonymous16-Jul-05 9:19 
GeneralRe: auto select tree node Pin
Luis Alonso Ramos16-Jul-05 18:39
Luis Alonso Ramos16-Jul-05 18:39 
GeneralRe: auto select tree node Pin
Anonymous17-Jul-05 10:09
Anonymous17-Jul-05 10:09 
GeneralRe: auto select tree node Pin
Luis Alonso Ramos17-Jul-05 10:13
Luis Alonso Ramos17-Jul-05 10:13 
GeneralSecurity in Asp.net Pin
pakFari16-Jul-05 9:12
pakFari16-Jul-05 9:12 
GeneralRe: Security in Asp.net Pin
enjoycrack19-Jul-05 0:29
enjoycrack19-Jul-05 0:29 

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.