UserControls & Resource Files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm building a solution which is going to require a number of images and
strings. I've made the decision to create a resource project for the solution
that contains several resource files, my other projects can then load custom
strings and images from the appropriate resource file using my custom
resource manager.

This all works fine at run time when debugging but I get errors using the
designer that it can't find the key in the resource file...?

In this instance I have created a user control in one project which has a
label, the label gets its text and background image from a resource file in
the resource project, it does this in the user controls Load event.

Is this a good way to do it? I want to avoid having resources stored
everywhere.
 
Neil,

When you design the user control the load event is not fired. It will be
fired ahowever when you place a control on a form and design the form.
 
Back
Top