Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i get i ShowDialog method in UserControl??? Pin
leppie17-Dec-03 11:20
leppie17-Dec-03 11:20 
GeneralRe: How can i get i ShowDialog method in UserControl??? Pin
Member 26118817-Dec-03 4:56
Member 26118817-Dec-03 4:56 
Generalho wto get ADO info Pin
xprtguro16-Dec-03 21:09
xprtguro16-Dec-03 21:09 
GeneralRe: ho wto get ADO info Pin
Heath Stewart17-Dec-03 3:48
protectorHeath Stewart17-Dec-03 3:48 
GeneralRe: ho wto get ADO info Pin
xprtguro17-Dec-03 21:35
xprtguro17-Dec-03 21:35 
GeneralRe: ho wto get ADO info Pin
Heath Stewart18-Dec-03 2:54
protectorHeath Stewart18-Dec-03 2:54 
Generalsamury Pin
samury16-Dec-03 17:04
susssamury16-Dec-03 17:04 
GeneralRe: samury Pin
gokselm16-Dec-03 23:19
gokselm16-Dec-03 23:19 
I just want to mention about one way doing this.
You can create a resource dll and embed your resources to this dll choosing the Build Action as Embedded Resource.
Then you can reach this icons as librray items.
Imagine yo have the icon test.ico in IconLibrary namespace and you want to change your form's icon.

System.IO.Stream st=assemblyExecuting.GetManifestResourceStream("IconLibrary.test.ico");
form.Icon=new System.Drawing.Icon(st);


System.IO.Stream st=assemblyExecuting.GetManifestResourceStream("IconLibrary.test.ico");
Read the icon as stream

form.Icon=new System.Drawing.Icon(st);
Then set the form's icon. Yo can also use System.Drawing.Bitmap(st) to convert the image to the bitmap.

Once you can get the image from the assembly you can use it in everywhere.

I Hope it helps


GeneralRe: samury Pin
Heath Stewart17-Dec-03 3:44
protectorHeath Stewart17-Dec-03 3:44 
GeneralRe: samury Pin
Anonymous17-Dec-03 15:58
Anonymous17-Dec-03 15:58 
Questiongetting enum integer ? Pin
azusakt16-Dec-03 15:38
azusakt16-Dec-03 15:38 
AnswerRe: getting enum integer ? Pin
Nick Parker16-Dec-03 16:49
protectorNick Parker16-Dec-03 16:49 
AnswerRe: getting enum integer ? Pin
Member 26118817-Dec-03 0:19
Member 26118817-Dec-03 0:19 
GeneralRe: getting enum integer ? Pin
Heath Stewart17-Dec-03 3:39
protectorHeath Stewart17-Dec-03 3:39 
GeneralSaving windows forms created at runtime Pin
kvimal16-Dec-03 12:49
kvimal16-Dec-03 12:49 
GeneralRe: Saving windows forms created at runtime Pin
Colin Angus Mackay16-Dec-03 13:01
Colin Angus Mackay16-Dec-03 13:01 
GeneralRe: Saving windows forms created at runtime Pin
Nigel Savidge17-Dec-03 4:30
Nigel Savidge17-Dec-03 4:30 
GeneralThreads and Controls Pin
Guinness4Strength16-Dec-03 11:59
Guinness4Strength16-Dec-03 11:59 
GeneralRe: Threads and Controls Pin
Mike Ellison16-Dec-03 14:15
Mike Ellison16-Dec-03 14:15 
GeneralRe: Threads and Controls Pin
Heath Stewart17-Dec-03 3:35
protectorHeath Stewart17-Dec-03 3:35 
GeneralMdi problemo Pin
datainjector16-Dec-03 10:09
datainjector16-Dec-03 10:09 
GeneralRe: Mdi problemo Pin
Heath Stewart17-Dec-03 3:29
protectorHeath Stewart17-Dec-03 3:29 
GeneralRe: Mdi problemo Pin
Heath Stewart17-Dec-03 3:32
protectorHeath Stewart17-Dec-03 3:32 
GeneralRe: Mdi problemo Pin
datainjector17-Dec-03 10:15
datainjector17-Dec-03 10:15 
GeneralRemote Debugging Pin
mikemilano16-Dec-03 9:13
mikemilano16-Dec-03 9:13 

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.