Avatar billede repsak Nybegynder
27. februar 2003 - 16:26 Der er 6 kommentarer og
1 løsning

Program ikon

Hvordan vælger jeg selv ikonet til exe-filen? Istedet for den kedelige default.
Kasper
Avatar billede z42cool Nybegynder
27. februar 2003 - 16:29 #1
Du sletter det eksiterende App.ico og ligger et andet App.ico!
Avatar billede z42cool Nybegynder
27. februar 2003 - 16:30 #2
Forudsat at du bruger Visual Studio self. - ellers kan du sætte det vha. Form.Icon propertien!
Avatar billede repsak Nybegynder
27. februar 2003 - 16:54 #3
Hehe igen er det mig som ikke har præciseret mig godt nok :) Jeg mente det icon som ligger på skrivebordet (forudsat at exefilen ligger på skrivebordet)
Avatar billede burningice Nybegynder
27. februar 2003 - 17:07 #4
repsak>> ms-help://MS.NETFrameworkSDK/cscomp/html/vcerrWin32iconImportIcoFile.htm

/win32icon:filename
where:

filename
The .ico file that you want to add to your output file.
Remarks
The /win32icon option inserts an .ico file in the output file, which gives the output file the desired appearance in the Windows Explorer. An .ico file can be created with the Resource Compiler. The Resource Compiler is invoked when you compile a Visual C++ program; an .ico file is created from the .rc file.

See /linkresource (to reference) or /resource (to attach) a .NET Framework resource file. See /win32res to import a .res file.

To set this compiler option in the Visual Studio development environment

Open the project's Property Pages dialog box. For details, see Setting Visual C# Project Properties.
Click the Common Properties folder.
Click the General property page.
Modify the Application Icon property.
To set this compiler option programmatically

See ApplicationIcon Property.

Example
Compile in.cs and attach an .ico file rf.ico to produce in.exe:

csc /win32icon:rf.ico in.cs
See Also
C# Compiler Options
Avatar billede repsak Nybegynder
28. februar 2003 - 16:27 #5
cyberfessor > post an answer to get you points
Avatar billede burningice Nybegynder
02. marts 2003 - 19:13 #6
svar :)
Avatar billede casualty Nybegynder
30. april 2003 - 20:51 #7
anden computer
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester