dcsimg
Results 1 to 3 of 3
  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    107

    Set locale for FileDialog

    Is there any way to force FileDialog's locale? Setting thread's culture has no effect.

    Code:
    Dim t As New Thread(Sub()
    						Using o = New OpenFileDialog
    							o.ShowDialog
    						End Using
    					End Sub)
    t.CurrentCulture = New CultureInfo(1049)
    t.SetApartmentState(ApartmentState.STA)
    t.Start()

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,912

    Re: Set locale for FileDialog

    This is an educated guess but try setting the CurrentUICulture instead or as well.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    107

    Re: Set locale for FileDialog

    Unfortunately, it does not help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.