UserControls & Resource Files

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.
 
S

Stoitcho Goutsev \(100\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top