D
Dina Johson
Hi,
I am currently trying to understand how to use resource
files in a VB.NET windows application. I understand the
general concept, but it think there is a detail I am
missing. BTW, the resource file is not used for
Globalization here.
I have a simple form with a button and a textbox. I have
added a .resx file in my project. This is the code that
handles the button click:
Dim rm As New ResourceManager(GetType(Form1))
Me.TextBox1.Text = rm.GetString("2")
// 2 is the name of the string element in
the .resx file
The ".resources" file seems to be generated properly in
the OBJ directory, but when I click on the button, nothing
appear.
What do I miss?
thank you!
Dina
I am currently trying to understand how to use resource
files in a VB.NET windows application. I understand the
general concept, but it think there is a detail I am
missing. BTW, the resource file is not used for
Globalization here.
I have a simple form with a button and a textbox. I have
added a .resx file in my project. This is the code that
handles the button click:
Dim rm As New ResourceManager(GetType(Form1))
Me.TextBox1.Text = rm.GetString("2")
// 2 is the name of the string element in
the .resx file
The ".resources" file seems to be generated properly in
the OBJ directory, but when I click on the button, nothing
appear.
What do I miss?
thank you!
Dina