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 / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Resource File (.resx) does not show changes??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
al - 17 Oct 2004 04:13 GMT
Hi,

I use a resource file (.resx) to store user's settings such as
language and other strings.  The problem i'm facing is that when the
user changes one of the strings in the resource file,  those changes
are shown by VB.NET untill after the user reloads the app.

Is there any work-around for this behavior so changes can appear
without relaoding the app??

Thanks,
Grawsha
Sooraj PM - 17 Oct 2004 07:43 GMT
Hi

Are you using ResXResourceReader class for reading resource file. If not try
that class for reading resource file. You can edit the resx file when you run
the application. You dont need to restart the application to read the
modified entries.

Regards

Sooraj
Microsoft Community Star

> Hi,
>
[quoted text clipped - 8 lines]
> Thanks,
> Grawsha
al - 18 Oct 2004 04:06 GMT
> Hi
>
[quoted text clipped - 20 lines]
> > Thanks,
> > Grawsha

Thanks Sooraj,

will you please provide an example on how to move in the resource file
using ResXResourceReader?

MTIA,
Grawsha
Sooraj PM - 18 Oct 2004 09:11 GMT
Hi

Create the resource file (You can create the resource file by 1. Assign the
keys and values in a text file  save the same. 2 using the RESGEN.EXE you can
create the .Resx or .resources file from this text file)

Add the resource file to the project

Code for Listing the keys and values of Resource file:

Dim rsxr As ResXResourceReader
rsxr = New ResXResourceReader("..\txtResource.resx") ' Tha path of resource
file
Dim d As DictionaryEntry
For Each d In rsxr
     MessageBox.Show(String.Format("{0}:     {1}", d.Key.ToString(),
d.Value.ToString()))
Next d

rsxr.Close()'Close the reader.

Hope this will help you

Regards
Sooraj
Microsoft Community Star

> > Hi
> >
[quoted text clipped - 28 lines]
> MTIA,
> Grawsha

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.