Click here to Skip to main content
15,905,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: Icons included in EXE Pin
Heath Stewart23-Mar-04 3:45
protectorHeath Stewart23-Mar-04 3:45 
Icons cannot be embedded as resources in your assembly and be visible to windows. Keep in mind an assembly - while sharing the same extension as a native library (DLL) (and the PE/COFF header which minor differences) - is much different.

These icons must be in the .rsrc section of your PE/COFF executable. One way to do this is - after you compile your library or application - open it with Visual Studio (as a binary resource) and you'll see the various sections of the .rsrc section, like the VersionInfo block. You can import your icons there and give them resource IDs (if you'd rather refer to them by their resource ID rather than their index). If you've signed your assembly - and any production assemblies should be signed - you'll have to resign them. Typically, it's better to delay signing (see AssemblyDelaySignAttribute) till after you make these kinds of changes.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Icons included in EXE Pin
Guinness4Strength23-Mar-04 4:02
Guinness4Strength23-Mar-04 4:02 
GeneralWeb Service Remote Installation Pin
Braulio Dez23-Mar-04 2:16
Braulio Dez23-Mar-04 2:16 
GeneralRe: Web Service Remote Installation Pin
Mazdak23-Mar-04 2:33
Mazdak23-Mar-04 2:33 
GeneralRe: Web Service Remote Installation Pin
Braulio Dez23-Mar-04 2:40
Braulio Dez23-Mar-04 2:40 
GeneralRe: Web Service Remote Installation Pin
Heath Stewart23-Mar-04 3:25
protectorHeath Stewart23-Mar-04 3:25 
GeneralSimple Authentication Pin
mil_an23-Mar-04 1:53
mil_an23-Mar-04 1:53 
GeneralRe: Simple Authentication Pin
Mazdak23-Mar-04 2:03
Mazdak23-Mar-04 2:03 
GeneralRe: Simple Authentication Pin
Dave Kreskowiak23-Mar-04 2:04
mveDave Kreskowiak23-Mar-04 2:04 
GeneralRe: Simple Authentication Pin
mil_an23-Mar-04 2:05
mil_an23-Mar-04 2:05 
GeneralRe: Simple Authentication Pin
Mazdak23-Mar-04 2:28
Mazdak23-Mar-04 2:28 
GeneralRe: Simple Authentication Pin
mil_an23-Mar-04 3:08
mil_an23-Mar-04 3:08 
GeneralRe: Simple Authentication Pin
Mazdak23-Mar-04 3:14
Mazdak23-Mar-04 3:14 
GeneralRe: Simple Authentication Pin
Heath Stewart23-Mar-04 3:27
protectorHeath Stewart23-Mar-04 3:27 
GeneralRe: Simple Authentication Pin
Mazdak23-Mar-04 3:34
Mazdak23-Mar-04 3:34 
GeneralRe: Simple Authentication Pin
Dave Kreskowiak23-Mar-04 2:31
mveDave Kreskowiak23-Mar-04 2:31 
GeneralRe: Simple Authentication Pin
Mazdak23-Mar-04 2:36
Mazdak23-Mar-04 2:36 
GeneralRe: Simple Authentication Pin
Dave Kreskowiak23-Mar-04 3:56
mveDave Kreskowiak23-Mar-04 3:56 
GeneralRe: Simple Authentication Pin
Heath Stewart23-Mar-04 3:39
protectorHeath Stewart23-Mar-04 3:39 
GeneralMultiple combos on one DataAdapter Pin
Pete Burgess23-Mar-04 0:53
Pete Burgess23-Mar-04 0:53 
GeneralRe: Multiple combos on one DataAdapter Pin
Heath Stewart23-Mar-04 3:50
protectorHeath Stewart23-Mar-04 3:50 
GeneralRe: Multiple combos on one DataAdapter Pin
Pete Burgess25-Mar-04 9:54
Pete Burgess25-Mar-04 9:54 
GeneralRe: Multiple combos on one DataAdapter Pin
Heath Stewart25-Mar-04 9:55
protectorHeath Stewart25-Mar-04 9:55 
GeneralUser who started the app Pin
nilhz23-Mar-04 0:36
nilhz23-Mar-04 0:36 
GeneralRe: User who started the app Pin
Mazdak23-Mar-04 1:20
Mazdak23-Mar-04 1:20 

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.