473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Icon does not appear.

Hello,
I have an application with a main class subclassing the
System.Windows.Form and i changed the Icon setting for the application
to point to a different icon file. Now, when my application runs, the
icon appearing in the upper left hand side of the window frame is the
default one and not the one i selected. I went back and checked after
compilation and the properties for the form indicate the new icon name i
designated but the application does not display the icon when it runs or
even in design mode. The icon does appear when i do Alt-Tab, but the one
in the control box or the one that shows up when i minimize the window
is just a blank icon.
Here is the line of code that the VS .NET C# has created:
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(728, 593);
this.Controls.Add(this.statusBar);
this.Controls.Add(this.lstUserFeedback);
this.Controls.Add(this.tabControl1);
this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this. Icon")));
this.Menu = this.myMainMenu;
this.Name = "MyApp";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n;
this.Text = "MyApp";
this.tabControl1.ResumeLayout(false);

Any ideas?

Thanks, Please tell me how to reply...
BRAHM

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
1 8220
Hi,

You should change both the application icon as well as the form one,they
are not the same.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Brahm" <br***@ficticous.org> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
Hello,
I have an application with a main class subclassing the
System.Windows.Form and i changed the Icon setting for the application
to point to a different icon file. Now, when my application runs, the
icon appearing in the upper left hand side of the window frame is the
default one and not the one i selected. I went back and checked after
compilation and the properties for the form indicate the new icon name i
designated but the application does not display the icon when it runs or
even in design mode. The icon does appear when i do Alt-Tab, but the one
in the control box or the one that shows up when i minimize the window
is just a blank icon.
Here is the line of code that the VS .NET C# has created:
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(728, 593);
this.Controls.Add(this.statusBar);
this.Controls.Add(this.lstUserFeedback);
this.Controls.Add(this.tabControl1);
this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this. Icon")));
this.Menu = this.myMainMenu;
this.Name = "MyApp";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n;
this.Text = "MyApp";
this.tabControl1.ResumeLayout(false);

Any ideas?

Thanks, Please tell me how to reply...
BRAHM

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matthew Fitzpatrick | last post by:
when multiple similar forms are opened up, windows xp can group them into an application group button on the start bar. Unfortunately, this application group uses the icon of the application's...
2
by: Jesper | last post by:
Hi, I've assigned an icon (draw for 16x16 and 32x32) to an application. It shows correctly on the program bar and task bar, but in explorer, no matter what view mode I select (details, list,...
1
by: steve bull | last post by:
I created a control and added to my toolbox and it worked fine including the controls icon until I decided to merge the project that contains the control into an existing project. I have included...
0
by: Ghazanfar Ali | last post by:
Hi All: I am developing Dialog based application. I have placed Microsoft WebBrowser control(IE control) on main Dialog of application. On the IE control, i have drawn an image on the IE control...
1
by: Brahm | last post by:
Hello, I have an application with a main class subclassing the System.Windows.Form and i changed the Icon setting for the application to point to a different icon file. Now, when my application...
6
by: Neo | last post by:
i'd like to create an application which would run in the background, & there'd be an icon in the system tray (can use the notify icon). But HOW can i make the form invisible. What i'd like to do...
0
by: Marcel Brekelmans | last post by:
Hello, I'm making an application, but sofar I can't get its icon to appear in the task switcher. I have created an iconfile with three icons in it: 16x16, 32x32, 48x48, 24bpp. I have assigned it...
4
by: Frank | last post by:
Private Sub SaveBitmap(ByVal fileName As String, ByVal p As System.Drawing.Bitmap) ...snip p.Save(fileName, Imaging.ImageFormat.Icon) Does not produce an icon formatted file. At least if I...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.