Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Javier Lozano19-Jul-04 18:06
Javier Lozano19-Jul-04 18:06 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Heath Stewart20-Jul-04 10:04
protectorHeath Stewart20-Jul-04 10:04 
GeneralBinary Data over network Pin
joelwwk19-Jul-04 17:11
joelwwk19-Jul-04 17:11 
GeneralRe: Binary Data over network Pin
Heath Stewart20-Jul-04 10:19
protectorHeath Stewart20-Jul-04 10:19 
GeneralMissing Authorization http header Pin
darma_m19-Jul-04 15:37
darma_m19-Jul-04 15:37 
GeneralResizing help Pin
Wjousts19-Jul-04 15:18
Wjousts19-Jul-04 15:18 
GeneralRe: Resizing help Pin
Heath Stewart20-Jul-04 10:25
protectorHeath Stewart20-Jul-04 10:25 
Questionhow to get the system imagelist Pin
noosword19-Jul-04 14:46
noosword19-Jul-04 14:46 
i wanna to use the following code to get
hte system imagelist ,but it doesn't works well,the iconCount always equal 5,and so
i can't get the correct imagelist,who can tell me what's wrong with it.
[DllImport("comctl32.dll")]
private static extern int ImageList_GetImageCount( IntPtr himl );
public static ImageList GetSystemImagelist(bool isSmall , bool isSelected )
{
SHFILEINFO info = new SHFILEINFO(true);
int cbInfo = Marshal.SizeOf(info);
SHGFI flags = SHGFI.SHGFI_SYSICONINDEX;
SHIL size ;
if(isSmall == true)

flags |= SHGFI.SHGFI_SMALLICON;
else
flags |= SHGFI.SHGFI_ICON;
if(isSelected == true)
flags |= SHGFI.SHGFI_OPENICON;
ImageList imageList = new ImageList();
IntPtr imageHandle = SHGetFileInfo("C:\\",0,out info, (uint)cbInfo,flags);
IntPtr iconHandle = IntPtr.Zero;
int iconCount = ImageList_GetImageCount(imageHandle);
for (int i = 0; i < iconCount; i++)
{
iconHandle = ImageList_GetIcon(imageHandle, i, 0);
imageList.Images.Add (Icon.FromHandle(iconHandle));
}
return imageList;
}
AnswerRe: how to get the system imagelist Pin
Heath Stewart20-Jul-04 4:29
protectorHeath Stewart20-Jul-04 4:29 
GeneralRe: how to get the system imagelist Pin
noosword20-Jul-04 19:02
noosword20-Jul-04 19:02 
GeneralRe: how to get the system imagelist Pin
Heath Stewart21-Jul-04 3:59
protectorHeath Stewart21-Jul-04 3:59 
GeneralCapturing the desktop Pin
Salman Taseer`19-Jul-04 13:15
Salman Taseer`19-Jul-04 13:15 
GeneralRe: Capturing the desktop Pin
Nick Parker19-Jul-04 17:16
protectorNick Parker19-Jul-04 17:16 
GeneralTag name of the root element of the XML data file Pin
Flack19-Jul-04 13:04
Flack19-Jul-04 13:04 
GeneralRe: Tag name of the root element of the XML data file Pin
Dave Kreskowiak19-Jul-04 15:32
mveDave Kreskowiak19-Jul-04 15:32 
GeneralRe: Tag name of the root element of the XML data file Pin
Flack19-Jul-04 16:05
Flack19-Jul-04 16:05 
GeneralRe: Tag name of the root element of the XML data file Pin
Nick Parker19-Jul-04 17:11
protectorNick Parker19-Jul-04 17:11 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:01
protectorHeath Stewart20-Jul-04 4:01 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:04
protectorHeath Stewart20-Jul-04 4:04 
GeneralAccessing Parallel Port Pin
ahmedadelfarid19-Jul-04 11:32
ahmedadelfarid19-Jul-04 11:32 
GeneralRe: Accessing Parallel Port Pin
Dave Kreskowiak19-Jul-04 15:31
mveDave Kreskowiak19-Jul-04 15:31 
GeneralRe: Accessing Parallel Port Pin
eggie519-Jul-04 18:23
eggie519-Jul-04 18:23 
Generaltrap state changes (standbye, hibernate, etc) Pin
vista2719-Jul-04 11:31
vista2719-Jul-04 11:31 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
Heath Stewart19-Jul-04 11:45
protectorHeath Stewart19-Jul-04 11:45 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
vista2719-Jul-04 13:57
vista2719-Jul-04 13:57 

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.