Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enable xp themes via code in 1.0 Pin
Heath Stewart6-Nov-03 4:40
protectorHeath Stewart6-Nov-03 4:40 
GeneralRe: Enable xp themes via code in 1.0 Pin
Roger Alsing6-Nov-03 4:45
Roger Alsing6-Nov-03 4:45 
GeneralRe: Enable xp themes via code in 1.0 Pin
Heath Stewart6-Nov-03 11:33
protectorHeath Stewart6-Nov-03 11:33 
QuestionHow can I change memory with IntPtr Pin
System_Reflection5-Nov-03 21:52
System_Reflection5-Nov-03 21:52 
AnswerRe: How can I change memory with IntPtr Pin
Corinna John6-Nov-03 0:58
Corinna John6-Nov-03 0:58 
GeneralAnimated/skinned mesh in C# Pin
bjoernen5-Nov-03 21:38
bjoernen5-Nov-03 21:38 
GeneralRe: Animated/skinned mesh in C# Pin
nematzade23-May-10 5:51
nematzade23-May-10 5:51 
GeneralEmbedded Icons and ImageList Pin
pnolan5-Nov-03 20:19
pnolan5-Nov-03 20:19 
If you can help me with this one you are a champion. I havn't been able to find anyone that knows how to do this.

I need to loop through all embedded icons in an embedded folder and populate an imagelist. As seen below, I have an embedded folder Prud.Library.Icons.State which contains a set of icons. I would like to add all Icons in State to an ImageList regardless of their name.

Does anyone know how this can be done?

Thanks heaps. Smile | :)

Note: string sIconName = "Prud.Library.Icons.State.Icon1.ico";

System.IO.Stream objStream = null;
System.Drawing.Icon[] objIcon;
try
{
/*
* Stream Icon and add to ImageList
*/
objStream = this.GetType().Assembly.GetManifestResourceStream(sIconName);

if (objStream != null)
{
objIcon = new System.Drawing.Icon[1];
objIcon[0] = new Icon(objStream);
}
}
catch (Exception err)
{
throw err;
}
finally
{
/*
* Dispose of Stream Object
*/
if (objStream != null)
{
objStream.Flush();
objStream = null;
}
}
return objIcon;

GeneralRe: Embedded Icons and ImageList Pin
Heath Stewart6-Nov-03 4:07
protectorHeath Stewart6-Nov-03 4:07 
GeneralDataGrid Column Resize Pin
pnolan5-Nov-03 20:15
pnolan5-Nov-03 20:15 
GeneralRe: DataGrid Column Resize Pin
Daniel Zaharia5-Nov-03 22:37
Daniel Zaharia5-Nov-03 22:37 
GeneralC# Client Server Database Application Pin
Cenray. G5-Nov-03 19:39
Cenray. G5-Nov-03 19:39 
GeneralRe: C# Client Server Database Application Pin
mhmoud rawas5-Nov-03 20:39
mhmoud rawas5-Nov-03 20:39 
Questionhow to delete one file in network share folder with .NET Pin
don7cry5-Nov-03 19:18
don7cry5-Nov-03 19:18 
AnswerRe: how to delete one file in network share folder with .NET Pin
mhmoud rawas5-Nov-03 20:27
mhmoud rawas5-Nov-03 20:27 
GeneralRe: how to delete one file in network share folder with .NET Pin
don7cry5-Nov-03 21:52
don7cry5-Nov-03 21:52 
Generalhelp me, please! Pin
don7cry5-Nov-03 16:10
don7cry5-Nov-03 16:10 
GeneralRe: help me, please! Pin
mhmoud rawas5-Nov-03 18:34
mhmoud rawas5-Nov-03 18:34 
GeneralRe: help me, please! Pin
don7cry5-Nov-03 19:19
don7cry5-Nov-03 19:19 
GeneralAccess Richtext/Memo Field and C# Pin
bjulien5-Nov-03 15:04
bjulien5-Nov-03 15:04 
GeneralRe: Access Richtext/Memo Field and C# Pin
Mike Ellison5-Nov-03 15:06
Mike Ellison5-Nov-03 15:06 
GeneralRe: Access Richtext/Memo Field and C# Pin
bjulien5-Nov-03 15:24
bjulien5-Nov-03 15:24 
QuestionWMI, How to browse schema of current class types? Pin
Chris Richner5-Nov-03 11:12
Chris Richner5-Nov-03 11:12 
AnswerRe: WMI, How to browse schema of current class types? Pin
JerryFW20-Nov-03 11:24
JerryFW20-Nov-03 11:24 
GeneralVS.NET Addin, try to serialize into filestream -> Unable to determine identity of assembly. Pin
Chris Richner5-Nov-03 11:06
Chris Richner5-Nov-03 11:06 

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.