Click here to Skip to main content
15,885,149 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang2-Jan-11 2:10
Yance Lawang2-Jan-11 2:10 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
T21022-Jan-11 2:15
T21022-Jan-11 2:15 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang2-Jan-11 3:19
Yance Lawang2-Jan-11 3:19 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Dave Kreskowiak2-Jan-11 7:39
mveDave Kreskowiak2-Jan-11 7:39 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang2-Jan-11 18:35
Yance Lawang2-Jan-11 18:35 
QuestionDisappearing Console Caption Icon? [Solved] Pin
Saul Johnson27-Dec-10 14:42
Saul Johnson27-Dec-10 14:42 
AnswerRe: Disappearing Console Caption Icon? Pin
Luc Pattyn27-Dec-10 14:56
sitebuilderLuc Pattyn27-Dec-10 14:56 
GeneralRe: Disappearing Console Caption Icon? Pin
Saul Johnson27-Dec-10 15:14
Saul Johnson27-Dec-10 15:14 
Hi!

Sorry if my question was slightly brief, here's the information you requested:

- The icon displays correctly when launched from windows explorer by double-clicking the program icon. When I launch it in debug mode from VB Express it's icon does not display at all, regardless of command line arguments (though I assume that this has something to do with the Visual Studio hosting process). When launched from "cmd.exe", the icon remains as the standard icon for the command prompt regardless of arguments provided.

When the program is launched because a file of a type associated with it (through the registry) is double-clicked in windows explorer, the icon does not display correctly, the default executable icon is used instead.

- My OS is Windows 7 Home Premium.

- My code does not alter the caption icon in any way.

- The icon sizes in the .ico file are 256x256, 128x128, 48x48, 32x32, 24x24 and 16x16 all of which are in 32-bit colour.

Until about 2 minutes ago, I had assumed that it was the command-line arguments that were causing this problem, but it appears to be the fact that the application is being launched through opening an associated file type with it. The DefaultValue value in the shell/open/command registry key associated with the file type is:

"C:\MyApplication" "%1"


I'm sorry for neglecting to make this clear in the first place.

MrWolfy Big Grin | :-D
GeneralRe: Disappearing Console Caption Icon? Pin
Luc Pattyn27-Dec-10 15:19
sitebuilderLuc Pattyn27-Dec-10 15:19 
GeneralRe: Disappearing Console Caption Icon? Pin
Saul Johnson27-Dec-10 15:27
Saul Johnson27-Dec-10 15:27 
GeneralRe: Disappearing Console Caption Icon? Pin
Luc Pattyn27-Dec-10 15:37
sitebuilderLuc Pattyn27-Dec-10 15:37 
QuestionNeeding help with Oledb programming Pin
John Mobley26-Dec-10 15:18
John Mobley26-Dec-10 15:18 
AnswerRe: Needing help with Oledb programming Pin
Dave Kreskowiak26-Dec-10 18:56
mveDave Kreskowiak26-Dec-10 18:56 
AnswerRe: Needing help with Oledb programming Pin
_Erik_27-Dec-10 2:55
_Erik_27-Dec-10 2:55 
Questionresource Pin
hamidehhhhhhh25-Dec-10 23:04
hamidehhhhhhh25-Dec-10 23:04 
AnswerRe: resource Pin
Richard MacCutchan25-Dec-10 23:11
mveRichard MacCutchan25-Dec-10 23:11 
AnswerRe: resource Pin
Abhinav S25-Dec-10 23:19
Abhinav S25-Dec-10 23:19 
AnswerRe: resource Pin
Dave Kreskowiak26-Dec-10 5:13
mveDave Kreskowiak26-Dec-10 5:13 
AnswerRe: resource Pin
Luc Pattyn26-Dec-10 5:42
sitebuilderLuc Pattyn26-Dec-10 5:42 
GeneralRe: resource Pin
Henry Minute27-Dec-10 0:21
Henry Minute27-Dec-10 0:21 
GeneralRe: resource Pin
Luc Pattyn27-Dec-10 4:55
sitebuilderLuc Pattyn27-Dec-10 4:55 
GeneralRe: resource Pin
Dalek Dave27-Dec-10 12:42
professionalDalek Dave27-Dec-10 12:42 
GeneralRe: resource Pin
Luc Pattyn27-Dec-10 12:49
sitebuilderLuc Pattyn27-Dec-10 12:49 
GeneralRe: resource Pin
Alan Burkhart28-Dec-10 18:44
Alan Burkhart28-Dec-10 18:44 
QuestionRe: resource Pin
Luc Pattyn28-Dec-10 23:39
sitebuilderLuc Pattyn28-Dec-10 23:39 

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.