K
Kevin.Li
Hi all,
Any criticism will be appreciated.
I have a project coded in VS.NET 2003, and I am moving to VS.NET 2005
and convert to Project to VS.NET 2005 Version. In the former project,
I have an object: POImageList which is type of
System.Windows.Forms.ImageList and holds 6 Images.
I add the following codes to InitializeComponent() part:
//
toolStripButton1.image = POImageList,Images[0];
Then I build and run the project, It works well and the result is
exactly what I want.
However, The Problem is:
When I return to the designer mode and build the project again, the
IDE remove the line: toolStripButton1.image = POImageList,Images[0];
When I run the project, Nothing appears on toolStripButton1. I tried
serveral times, but things are the same.
Does anyone else has this kind of problems?
Thanks again.
Any criticism will be appreciated.
I have a project coded in VS.NET 2003, and I am moving to VS.NET 2005
and convert to Project to VS.NET 2005 Version. In the former project,
I have an object: POImageList which is type of
System.Windows.Forms.ImageList and holds 6 Images.
I add the following codes to InitializeComponent() part:
//
toolStripButton1.image = POImageList,Images[0];
Then I build and run the project, It works well and the result is
exactly what I want.
However, The Problem is:
When I return to the designer mode and build the project again, the
IDE remove the line: toolStripButton1.image = POImageList,Images[0];
When I run the project, Nothing appears on toolStripButton1. I tried
serveral times, but things are the same.
Does anyone else has this kind of problems?
Thanks again.