Iam using a toolbar in mdi form with 5 buttons. and i had added an imagelist with five icons. For each button in toolbar i have assigned one icon from image list.
The toolbar button icons r visible in design time. but when i run the application only buttons r getting displayed with no icons on it.
Can anyone help me out of this problem...
Thanks in advance
You forgot to mention the most critical part. You are using Visual Styles.
Start your app in Sub Main() and add Application.DoEvents after Application.EnableVisualStyles.
It may be better to use a Manifest file/resource instead.
An alternative solution (instead of adding Application.DoEvents) is to leave your ImageList empty at design time. Add the Icons to your project as embedded resource and add them to the Imagelist in the Form_Load() method.