yolip
April 3rd, 2008, 08:12 PM
Hi,
I currently using the below code to assign image from Resources to menu.
rm = new RibbonMenu();
rm.Text="Search";
rm.LargeImage = Properties.Resources.search;
can i replace "Properties.Resources.search" with a variable? something like this:
string imgName="search";
rm = new RibbonMenu();
rm.Text="Search";
rm.LargeImage = imgName;
Please help.
Thanks
I currently using the below code to assign image from Resources to menu.
rm = new RibbonMenu();
rm.Text="Search";
rm.LargeImage = Properties.Resources.search;
can i replace "Properties.Resources.search" with a variable? something like this:
string imgName="search";
rm = new RibbonMenu();
rm.Text="Search";
rm.LargeImage = imgName;
Please help.
Thanks