473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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
3 3309
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ...
2
by: gopal | last post by:
Hi I am a newbie and i am trying to create a resource file (resx) for a console C# application Can i go to current C# project and add a new resource file and then start adding values? Can...
2
by: gopal | last post by:
Hi I am a newbie and i am trying to create a resource file (resx) for a console C# application Can i go to current C# project and add a new resource file and then start adding values? Can...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
12
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
1
by: TisMe | last post by:
Hi All, I am trying to use resource files to globalize my website application. I had this working fine, working through the API for setting page titles programatically, with the resource files...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: mahendra dubey | last post by:
Hi There I m new to WPF. I have two projects 1)Project1(Windows project 2)Project 2(WPF project). I have a strings.resx resource file in project1.I have created a new usercontrol in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.