Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Using External Icons in UltraWinToolbar
posted

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

Parents
  • 53790
    posted

    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

    Solution.zip
Reply Children