Renaming a class

D

dragonslayer008

Hi I have a designer generated class when I made a user control
project. There is a comment warning:

/// WARNING: If you change the name of this class, you will need to
change the
/// 'Resource File Name' property for the managed resource
compiler tool
/// associated with all .resx files this class depends on.
Otherwise,
/// the designers will not be able to interact properly with
localized
/// resources associated with this form.



Can someone explain the steps in more detail? I opened the .resx file,
but could not find the "Resource File Name" property.
 
M

Mythran

Hi I have a designer generated class when I made a user control
project. There is a comment warning:

/// WARNING: If you change the name of this class, you will need to
change the
/// 'Resource File Name' property for the managed resource
compiler tool
/// associated with all .resx files this class depends on.
Otherwise,
/// the designers will not be able to interact properly with
localized
/// resources associated with this form.



Can someone explain the steps in more detail? I opened the .resx file,
but could not find the "Resource File Name" property.

From the looks of it, you select each .resx file and then open the
properties for those files (F4), then change the Resource File Name property
to be similar to what you renamed the class to.

HTH,
Mythran
 

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