|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > vb problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|