Click here to Skip to main content
15,913,289 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 5:23
Spacix One29-Apr-08 5:23 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Zoltan Balazs29-Apr-08 6:36
Zoltan Balazs29-Apr-08 6:36 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 7:39
Spacix One29-Apr-08 7:39 
QuestionCollection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin25-Apr-08 3:48
Laoujin25-Apr-08 3:48 
AnswerRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
gbarrett2-May-11 6:15
gbarrett2-May-11 6:15 
GeneralRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin4-May-11 7:42
Laoujin4-May-11 7:42 
GeneralHaving trouble with default icon for desktop app Pin
Mark F.24-Apr-08 11:43
Mark F.24-Apr-08 11:43 
GeneralRe: Having trouble with default icon for desktop app Pin
Mike Dimmick25-Apr-08 3:04
Mike Dimmick25-Apr-08 3:04 
I think you're getting caught out between how .NET handles resources and how Win32 does. Explorer uses the old Win32 model for resources; .NET has a new incompatible model.

You also need to understand how icons work. Logically, each of the images in the same icon file represent the same icon. Windows or .NET pick the appropriate image out of the file depending on the size of the image requested (e.g. large vs small icons) and the screen colour depth (the system will use the highest available colour depth in the icon file that's less than or equal to the colour depth of the screen, for the requested icon size). If it doesn't have an icon in the requested size it will synthesize one by scaling up or down the icons that are available.

What you need to do is separate your images into three icon files: one for the app, and one for each of the document files. You then need to build a Win32-style resource file using a resource script (.rc file) and the Win32 resource compiler, rc.exe, to generate a .res file. You can then go to the Application tab in the project properties in Visual Studio 2005 and select Resource File rather than Icon, and select the .res file you generated.

I think you will need to add a version resource to the .rc file as well, if you want the Version tab to appear in Windows Explorer with your company name information.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: Having trouble with default icon for desktop app Pin
Mark F.26-Apr-08 10:06
Mark F.26-Apr-08 10:06 
QuestionHow to remove an application's taskbar icon ? Pin
tamour24-Apr-08 10:52
tamour24-Apr-08 10:52 
GeneralRe: How to remove an application's taskbar icon ? Pin
Mark F.24-Apr-08 12:02
Mark F.24-Apr-08 12:02 
GeneralRe: How to remove an application's taskbar icon ? Pin
tamour27-Apr-08 0:13
tamour27-Apr-08 0:13 
QuestionProgressBar questions... Pin
jose.angel.calleja24-Apr-08 6:30
jose.angel.calleja24-Apr-08 6:30 
GeneralRe: ProgressBar questions... Pin
Kschuler24-Apr-08 7:41
Kschuler24-Apr-08 7:41 
GeneralInstall tool Pin
Heracles Choe24-Apr-08 4:23
Heracles Choe24-Apr-08 4:23 
GeneralRe: Install tool Pin
Ed.Poore24-Apr-08 8:47
Ed.Poore24-Apr-08 8:47 
QuestionHow to access first created form's control properties from another form? Pin
Sinan Akyuz24-Apr-08 1:49
Sinan Akyuz24-Apr-08 1:49 
GeneralRe: How to access first created form's control properties from another form? Pin
Kschuler24-Apr-08 7:54
Kschuler24-Apr-08 7:54 
AnswerRe: How to access first created form's control properties from another form? Pin
tamour24-Apr-08 10:55
tamour24-Apr-08 10:55 
QuestionText alignment problem [modified] Pin
storm202124-Apr-08 0:33
storm202124-Apr-08 0:33 
Generalconvert datetime to decimal Pin
srinivassam23-Apr-08 21:15
srinivassam23-Apr-08 21:15 
GeneralRe: convert datetime to decimal Pin
darkelv23-Apr-08 21:32
darkelv23-Apr-08 21:32 
QuestionHow Can I close Child Form Only in Visual Studio 2005 (c#) Pin
ALAQUNAIBI23-Apr-08 4:58
ALAQUNAIBI23-Apr-08 4:58 
AnswerRe: How Can I close Child Form Only in Visual Studio 2005 (c#) Pin
Pete O'Hanlon23-Apr-08 5:25
mvePete O'Hanlon23-Apr-08 5:25 
QuestionFreeze the column in listview Pin
aravindakumar22-Apr-08 23:43
aravindakumar22-Apr-08 23:43 

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.