Answered by:
ALT + TAB Application Icon is not shown

Question
-
I have a form with Icon loaded at runtime. I made that form as ShowInTaskBar = false;
If I want to navigate, I should go by ALT + TAB only, if I give ALT + TAB, default VS icon is shown. How to resolve this.?
Thursday, September 6, 2012 6:02 AM
Answers
-
Tried it. It also works if you change it after the form is shown.
- Marked as answer by Pasupathi Friday, September 7, 2012 4:48 AM
Thursday, September 6, 2012 9:46 AM
All replies
-
you need to assign the icon(.ico) image in the icon property of the form. Go to the Form property(F4), then set Icon there.
regards
joon
Thursday, September 6, 2012 7:20 AM -
If I do it by runtime like, Form1.icon = icon; It'll not come?Thursday, September 6, 2012 8:35 AM
-
Tried it. It also works if you change it after the form is shown.
- Marked as answer by Pasupathi Friday, September 7, 2012 4:48 AM
Thursday, September 6, 2012 9:46 AM -
hi,
You should use the below code for loading the icon in the form. Also you should copy the icon file to application exe location (Debug/Release). Otherwise add the file to project and mark the property as Copy always.
this.Icon = new Icon("MSN.ICO");
Regards,
Umesh
Thursday, September 6, 2012 10:53 AM -
it will work, but make sure that you do not make a new object of the form and assign ICON to that. it will go on infinite loop of you make a new object at start of the form.
regards
joon
Thursday, September 6, 2012 11:11 AM -
>Louis:
Chanceless. Perfect prediction, Thank you very much. I called that in the Form constructor. Its working...
Thank you very much..
Friday, September 7, 2012 4:50 AM