I am going to start a new string of posts that are very brief. These posts are meant to spread small little nuggets of information that I have picked up during the course of the day. My first is going to be with .NET development. I want them to be a way for developers to find small things that are hard to find on the net or not many people have talked about before. Here is my first one.
The company I am doing work for has been using Syncfusion 3.0 Windows forms controls for some of their UI elements. Since upgrading to .NET 2.0 we have been trying to remove some of the unnecessary controls since they are now available in .NET 2.0 or they have been enhanced.
One of these controls is the tool strip and menu strip items. Since I refactoring some of the UI within a section of this Windows forms application, I wanted to remove these Syncfusion menu controls. So I drop a new ToolStrip control on the form, add some buttons, and then I go to change the images on those controls. I look for the ImageList property off of the ToolStrip and find it is not available in the designer. I noticed that it is still a property off of the control but the Windows Forms team must of marked it with a Browsable(false) attribute in .NET 2.0. It looks like it is going to be depreciated in future releases. Instead, each tool bar item has an image property. This has a designer that allows you to choose it from a resource file. It looks like Microsoft is taking the approach of puttingn these things in resource files instead of controls. I like this new approach, it is just that it added a little complexity of removing these Syncfusion controls.