Click here to Skip to main content
15,891,946 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB 2010 Error: Property access must assign to the property or use its values. Pin
Richard MacCutchan19-Apr-16 3:27
mveRichard MacCutchan19-Apr-16 3:27 
GeneralRe: VB 2010 Error: Property access must assign to the property or use its values. Pin
Ralf Meier20-Apr-16 1:10
mveRalf Meier20-Apr-16 1:10 
GeneralRe: VB 2010 Error: Property access must assign to the property or use its values. Pin
Gus11328-Apr-16 22:32
Gus11328-Apr-16 22:32 
QuestionVB6: Resource Editor shows no resources [SOLVED] Pin
Alan Balkany14-Apr-16 4:14
Alan Balkany14-Apr-16 4:14 
AnswerRe: VB6: Resource Editor shows no resources [SOLVED] Pin
Alan Balkany14-Apr-16 7:00
Alan Balkany14-Apr-16 7:00 
QuestionFont Designer in VB.NET 2008 Express Pin
Soubarna Das13-Apr-16 5:29
Soubarna Das13-Apr-16 5:29 
AnswerRe: Font Designer in VB.NET 2008 Express Pin
Richard Andrew x6413-Apr-16 5:32
professionalRichard Andrew x6413-Apr-16 5:32 
QuestionChanging Page Culture Pin
Hakmeh Mohannad12-Apr-16 3:13
Hakmeh Mohannad12-Apr-16 3:13 
Hi am working on new website with 2 languages only
so far i have succeeded to do it as this

MasterPage on Page_Init event
VB.NET
If (Session("culture") IsNot Nothing) Then
            Dim ci As New CultureInfo(Session("culture").ToString())
            Thread.CurrentThread.CurrentCulture = ci
            Thread.CurrentThread.CurrentUICulture = ci
        End If


ManagerBase Class OnInit event
C#
If Session("culture") Is Nothing Then
            Dim languages() As String = HttpContext.Current.Request.UserLanguages
            If ((languages Is Nothing) OrElse (languages.Length = 0)) Then
                Session("culture") = "en-US"
            Else
                Session("culture") = languages(0).ToLowerInvariant.Trim
                If Session("culture").Contains("ar") Then
                    Session("culture") = "ar-SA"
                Else
                    Session("culture") = "en-US"
                End If
            End If
        End If


Change Language Event
C#
If Thread.CurrentThread.CurrentCulture.IetfLanguageTag = "ar-SA" Then
            Session("culture") = "en-US"
            MyBase.OnInit(e)
            Server.Transfer(Request.Url.PathAndQuery)
        Else
            Session("culture") = "ar-SA"
            MyBase.OnInit(e)
            Server.Transfer(Request.Url.PathAndQuery)
        End If


the thing is when user choose another page or select different view in the page he lose the culture he selected it

how i can fix it?
QuestionPass Checked CheckBox count from one form to another Pin
Soubarna Das7-Apr-16 23:24
Soubarna Das7-Apr-16 23:24 
AnswerRe: Pass Checked CheckBox count from one form to another Pin
CHill608-Apr-16 1:53
mveCHill608-Apr-16 1:53 
GeneralRe: Pass Checked CheckBox count from one form to another Pin
Soubarna Das10-Apr-16 11:36
Soubarna Das10-Apr-16 11:36 
QuestionRe: Pass Checked CheckBox count from one form to another Pin
Ralf Meier9-Apr-16 10:17
mveRalf Meier9-Apr-16 10:17 
AnswerRe: Pass Checked CheckBox count from one form to another Pin
Soubarna Das10-Apr-16 11:36
Soubarna Das10-Apr-16 11:36 
QuestionRe: Pass Checked CheckBox count from one form to another Pin
Ralf Meier11-Apr-16 0:50
mveRalf Meier11-Apr-16 0:50 
AnswerRe: Pass Checked CheckBox count from one form to another Pin
Soubarna Das13-Apr-16 5:25
Soubarna Das13-Apr-16 5:25 
QuestionWhat Does FilterWorkbook Macro Actually Do? Pin
Member 124440697-Apr-16 16:19
Member 124440697-Apr-16 16:19 
AnswerRe: What Does FilterWorkbook Macro Actually Do? Pin
Richard MacCutchan7-Apr-16 21:11
mveRichard MacCutchan7-Apr-16 21:11 
GeneralRe: What Does FilterWorkbook Macro Actually Do? Pin
Member 124440688-Apr-16 8:18
Member 124440688-Apr-16 8:18 
GeneralRe: What Does FilterWorkbook Macro Actually Do? Pin
Richard MacCutchan8-Apr-16 22:09
mveRichard MacCutchan8-Apr-16 22:09 
GeneralRe: What Does FilterWorkbook Macro Actually Do? Pin
CHill6010-Apr-16 8:25
mveCHill6010-Apr-16 8:25 
QuestionExtract text in a file txt and simultaneously replace it with dots. Pin
Miauz7-Apr-16 9:55
Miauz7-Apr-16 9:55 
AnswerRe: Extract text in a file txt and simultaneously replace it with dots. Pin
Sascha Lefèvre7-Apr-16 10:22
professionalSascha Lefèvre7-Apr-16 10:22 
GeneralRe: Extract text in a file txt and simultaneously replace it with dots. Pin
Mycroft Holmes7-Apr-16 14:18
professionalMycroft Holmes7-Apr-16 14:18 
GeneralRe: Extract text in a file txt and simultaneously replace it with dots. Pin
Sascha Lefèvre7-Apr-16 22:36
professionalSascha Lefèvre7-Apr-16 22:36 
GeneralRe: Extract text in a file txt and simultaneously replace it with dots. Pin
Miauz8-Apr-16 1:58
Miauz8-Apr-16 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.