I have a solution where my Windows Forms are distributed in severalj Projects. I have one "Common" Project which all my other Projects has a reference to. I have added all my Icons to that Project and declared them Public.
In one of the other Projects in the solution I have a Windows Form with a UltraToolBar Control. I have added the Toolbars and Tools that I want. When I press "select Image from File" on a tool the Select Resource Dialog is displayed.
Here I'm missing the option to select from Global Resources. In the ComboBox I can choose My Project\Resources. I would like to have the option to choose Resources from any referenced Project in my solution.
In code I can access the Icons via Global.<myNamespace>.My.Resources.<ResourceName>
I am using version 2012.2
Hello Jörgen,
If I understand well your scenario and if you are talking about ButtonTool and ComboBox tool in your UltraToolbarManager, then I think that both tools have the same behavior. If you want to use Resources from your common project, you could use the code below:
ultraToolbarsManager1.Tools["ButtonTool1"].SharedProps.AppearancesLarge.Appearance.Image = Project_2.Properties.Resources.Su_T50_4;
ultraToolbarsManager1.Tools["ComboBoxTool1"].SharedProps.AppearancesLarge.Appearance.Image = Project_2.Properties.Resources.Su_T50_4;
Please take a look in attached sample and video file and let me know if you think that I didn`t reproduce your scenario. Feel free to modify this sample to reproduce your case and revert it back to me. I`ll be glad to research it for you.
If you have any questions, please write us.
Regards
this is the video file. Part 1
Part 2
Try to replace the jpg image in your example with an ico file and see if it still works.
In my solution I had added the Resources as Icons and this caused problems.
When I add Icons to the form via the Forms Designer and the select resource dialog and choosing an .ico file they seem to be converted to an image resource (not an Icon resource as I had added them) and this seems to cause problems.
If you need any additional assistance don’t hesitate to ask.
If you want to set image in your tools, you should use one of these formats: bmp, gif, jpg, png, tif. Let me know if you have any further questions.
Also try and add new Resources via Project properties (add Ico files as Icon Resources)
Go to the Windows forms designer and customize UltraWinToolbar and add an existing Icon resource to a toolbutton. The resource isn't displayed in the imagecontrol in the select Resources dialog.
Icon Resources isn't handled correctly by UltraWinToolbarsManager.