Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2005, 04:51 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can we use a resource file in vb.net

I have already created a resource file for two languages - in hindi and in english.
Now i want to call those resource files in my project..

Please help me in this...
Thanks in advance
Amrit

Amrit
 
Old April 11th, 2005, 02:45 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

have a look at this code
Code:
System.Globalization.CultureInfo cf=new CultureInfo("fr");
ResourceManager rc=new ResourceManager
      ("WindowsApplication1.resource",Assembly.GetExecutingAssembly());
textBox1.Text=rc.GetString("LabelText",cf);
my assumption was your main resource file(english) is resource.resx,also my asumption was that you have a resource.fr.resx for french language rc.GetString("LabelText",cf); goes through satelite assembly for retrieving the value in french..

_____________
Mehdi.
software student.
 
Old April 11th, 2005, 02:46 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

and convert them to VB.NET ;)

_____________
Mehdi.
software student.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Text file and convert to Binary file VB.net sjlsysprg1 Pro VB.NET 2002/2003 4 June 29th, 2007 06:53 AM
Resource File kk_kumar99 Beginning VB 6 3 October 23rd, 2006 04:32 AM
convert dsr file from vb to vb.net Shashi001 VB Components 1 September 22nd, 2006 12:24 PM
Save PDF file as text file in VB.Net kvenkatu Classic ASP Basics 0 April 7th, 2006 01:09 PM
save a PDF file as text file through VB. NET kvenkatu VB.NET 0 April 6th, 2006 12:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.