.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old November 18th, 2003, 09:13 AM
patbe patbe is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: sweden
Posts: 9 patbe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to patbe
vb problem

I have the follwing c# code:

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Request.UserLang uages[0]);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(Request.UserLanguages[0]);
LocRM = new ResourceManager("tanksurv.framework.resource.default", typeof(WebForm1).Assembly);
LoginFormButtonSubmit.Text = LocRM.GetString("loginButton");
}

now I need the follwing i vb and I have:

Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Request.UserLang uages(0))
Thread.CurrentThread.CurrentUICulture = New CultureInfo(Request.UserLanguages(0))
LocRM = New ResourceManager("tanksurvVB.framework.resource.default", GetType(WebForm1).Assembly)

LoginFormButtonSubmit.Text = LocRM.GetString("loginButton")
End Sub


but I don't get it to work I get:
Could not find any resources appropriate for the specified culture...

the vb project is named tanksurvVB and the c# tanksurv

need help

.patrik

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > vb problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway