Click here to Skip to main content
15,880,200 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL server connection string issue :-( Pin
Jeff Varszegi5-Nov-03 4:30
professionalJeff Varszegi5-Nov-03 4:30 
GeneralRe: SQL server connection string issue :-( Pin
Heath Stewart5-Nov-03 4:33
protectorHeath Stewart5-Nov-03 4:33 
GeneralCachedbitmap Pin
mhmoud rawas5-Nov-03 0:48
mhmoud rawas5-Nov-03 0:48 
Generaltranslate into c#............please Pin
Ahmed El Sherbeeny4-Nov-03 20:18
Ahmed El Sherbeeny4-Nov-03 20:18 
GeneralRe: translate into c#............please Pin
Corinna John4-Nov-03 20:25
Corinna John4-Nov-03 20:25 
GeneralRe: not working Pin
Ahmed El Sherbeeny4-Nov-03 20:44
Ahmed El Sherbeeny4-Nov-03 20:44 
GeneralRe: not working Pin
Corinna John4-Nov-03 22:35
Corinna John4-Nov-03 22:35 
GeneralPopulate ImageList with embedded Icons Pin
pnolan4-Nov-03 18:23
pnolan4-Nov-03 18:23 
Does anyone know how to loop through all 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: Populate ImageList with embedded Icons Pin
Anonymous5-Nov-03 20:10
Anonymous5-Nov-03 20:10 
Questionhow to make ms agent ask yes/no questions Pin
Sonia Jaiswal4-Nov-03 14:37
Sonia Jaiswal4-Nov-03 14:37 
Generalreading remote machine registry Pin
Waqar AMIN4-Nov-03 14:23
Waqar AMIN4-Nov-03 14:23 
GeneralRe: reading remote machine registry Pin
miahrugger4-Nov-03 16:47
miahrugger4-Nov-03 16:47 
GeneralRe: reading remote machine registry Pin
Daniel M. Edwards5-Nov-03 1:12
Daniel M. Edwards5-Nov-03 1:12 
Question.NET form apps portable? Pin
Anonymous4-Nov-03 8:43
Anonymous4-Nov-03 8:43 
AnswerRe: .NET form apps portable? Pin
leppie4-Nov-03 9:49
leppie4-Nov-03 9:49 
GeneralRe: .NET form apps portable? Pin
Mike Ellison4-Nov-03 10:08
Mike Ellison4-Nov-03 10:08 
QuestionCan a rich text box control displays HTML code correctly? Pin
trungbkvn4-Nov-03 8:33
trungbkvn4-Nov-03 8:33 
AnswerRe: Can a rich text box control displays HTML code correctly? Pin
Stephane Rodriguez.4-Nov-03 8:37
Stephane Rodriguez.4-Nov-03 8:37 
GeneralRe: Can a rich text box control displays HTML code correctly? Pin
trungbkvn4-Nov-03 9:17
trungbkvn4-Nov-03 9:17 
QuestionCan a function return an array of delegates? Pin
Gambit0074-Nov-03 7:27
Gambit0074-Nov-03 7:27 
AnswerYes Pin
Jeff Varszegi4-Nov-03 9:45
professionalJeff Varszegi4-Nov-03 9:45 
AnswerRe: Can a function return an array of delegates? Pin
leppie4-Nov-03 9:52
leppie4-Nov-03 9:52 
GeneralRe: Can a function return an array of delegates? Pin
Gambit0076-Nov-03 14:43
Gambit0076-Nov-03 14:43 
GeneralDataGrid - how to disable adding new rows. Pin
Arcus4-Nov-03 6:59
Arcus4-Nov-03 6:59 
GeneralRe: DataGrid - how to disable adding new rows. Pin
Daniel Zaharia4-Nov-03 9:53
Daniel Zaharia4-Nov-03 9:53 

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.