Suman Raj

Suman Raj

  • NA
  • 287
  • 12.1k

Custom User Control Form with dynamic buttons

Oct 10 2018 1:40 AM
First i created a form with dynamic button in user control c#.I access those buttons from application winforms.
//////Code old
Actual code : private ComponentResourceManager resources = new ComponentResourceManager(typeof(Properties.Resources));
button background code: button.BackgroundImage = ((System.Drawing.Image)(resources.GetObject(i)));
-It's working now but it access the resource from user control Resources.rex.I need to change the path which i access the Resources from main Application form.
-I need a alternation code for this above code to access resource from actual windows appplication Resource.rex.