logo       

Re: What is in Forms1.resX?: msg#00421

windows.devel.dotnet.winforms

Subject: Re: What is in Forms1.resX?

Richard,
Each Form that you create via the Forms designer gets a corresponding .resx
file to go along with it. As I recall, it basically stores strings and
possibly UI information about each of the controls on the form.

The main purpose of this form is so that forms can be easily localized. If
you open up a form in the editor and set the Localizable property to true,
you can then change what's on the form for any locale that you want. Then,
behind the scenes, the form designer will use the
System.Resources.ResourceManager (I think it's in System.Resources, been a
while since I looked) to properly load the UI data from the correct resource
DLL.

I haven't messed with WinForm localization much, although IMO it's a pain
that you can't include your own "random" strings into the .resx associated
with a form, since it gets regenerated each time you save your form (I would
want to do this to easily localize strings displayed in a MessageBox, for
example).

Andy

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of Richard
Heintze
Sent: Sunday, February 29, 2004 1:38 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] What is in Forms1.resX?

Wow -- I never saw this display before. I've been mistified by the XML in
Forms1.resX but now, for the first time, I have a datagrid display!

What is this display for? I have columns name, value, comment, type and
mimetype. Then to the left there is list box with data and resheader. I have
seen no mention of this display in the published tutorials from Wrox and
MicrosoftPress.
Thanks,
Sieg

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise