Regional Settings...The Solution

F

Felipe T.

Yeah....In this way u doesnot need to pass decimals as strings...
....Just Change up the Regional Settings...

'In my case just these r needed, but u can include as many as u want
according with the MSDN LCID Chart (Locale ID)

Public Enum LCID
PT_BR = &H416
EN_US = &H409
End Enum

<System.Runtime.InteropServices.DllImport("coredll.dll")> _
Public Shared Function SetUserDefaultLCID(ByVal Locale As LCID) As
Boolean
End Function

<System.Runtime.InteropServices.DllImport("coredll.dll")> _
Public Shared Function GetSystemDefaultLCID() As LCID
End Function

' BOOL SetUserDefaultUILanguage(LANGID langid);

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MessagBox.Show(GetSystemDefaultLCID.ToString)
MessagBox.Show(SetUserDefaultLCID(LCID.EN_US))
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top