Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / September 2006

Tip: Looking for answers? Try searching our database.

How to handle resource in multiple forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ghanashyam - 29 Aug 2006 12:12 GMT
I have a windows application that consists of multiple forms.If I maintain a
resource file for each form and keep the name in resource file to resemble
the form elements as below then wizard generated code in
InitializeComponent() brings these resources correctly for each form.
label1.Text = "Welcome to Main Form"
Instead of keeping many resource files,I would like to keep one resource
file for entire application and at the same time what name value pair sould
be there in resource file so that wizard generated InitializeCOmponent() will
be able to get those resource.I want to avoid doing UI changes using
ResourceManager.GetString("001").ANy help in this regard is highly
appreciated.
Thanks.
Garrett McGowan[MSFT] - 16 Sep 2006 01:33 GMT
Let's make sure I understand your scenario:

You would like to 1) maintain a single resource file across all the
application's forms and 2) ensure that the Designer-generated code will be
able to load from this resource file.

If I understand your request correctly, then I'm afraid this isn't
supported. While you can maintain an application-level resource file for
strings and the like, the WinForms Designer-generated code controls each
form's properties.

Garrett McGowan [MSFT Developer International]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------

>From: Ghanashyam@discussions.microsoft.com
>Subject: How to handle resource in multiple forms
[quoted text clipped - 13 lines]
>appreciated.
>Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.