By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,634 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,634 IT Pros & Developers. It's quick & easy.

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

P: n/a
al
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"al" wrote:
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

Nov 21 '05 #2

P: n/a
al
Sooraj PM <So******@discussions.microsoft.com> wrote in message news:<59**********************************@microso ft.com>...
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

"al" wrote:
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

Thanks Sooraj,

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

MTIA,
Grawsha
Nov 21 '05 #3

P: n/a
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

"al" wrote:
Sooraj PM <So******@discussions.microsoft.com> wrote in message news:<59**********************************@microso ft.com>...
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

"al" wrote:
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

Thanks Sooraj,

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

MTIA,
Grawsha

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.