Thanks Steve. Unfortunately I don't see icons in the toolbar in design view and hence I cannot update\delete the icons.
I am making changes to existing code and it's kind of hard to figure out which .resx file has these icon information. When I tried to edit the .resx file that is most likely to have this information in Resurce editor, I received "No resources to load in this file" error. Below is the code in case someone can figure out what's going on. Thanks!
try
{
this.ExecutingAssembly = System.Reflection.Assembly.GetExecutingAssembly();
this.FormResources = new System.Resources.ResourceManager( "MyApp.MyAppForm", this.ExecutingAssembly );
Icon ic1 = (System.Drawing.Icon) this.FormResources.GetObject ("connect.ico");
Icon ic2 = (System.Drawing.Icon) this.FormResources.GetObject ("disconnect.ico");
ImageList imglist = new ImageList();
imglist.Images.Add(ic1);
imglist.Images.Add(ic2);
this.toolBar.ImageList = imglist;
}
catch(Exception ex)
{
MessageBox.Show (ex.Message + ex.StackTrace);
}
for (int iToolButt = 0; iToolButt < toolbarText.Length; iToolButt ++)
{
ToolBarButton tButt = new ToolBarButton();
tButt.ImageIndex = iToolButt;
this.toolBar.Buttons.Add(tButt);
}