0

Hi Guys,

i am looking for a little direction on an issue that is poundering on my mind. I want to prevent a form from loading if the systems regional datetime settings format for the date is not in the form of dd/MM/yyyy.

any suggestions will be welcome.

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by GTTravis
0

Just dropping in to say thanks i was able to accomplish my task utilizing the site you recommended. i have enclosed code snippets

Imports System.Globalization 

 Dim culglobal As New CultureInfo("en-US")

    Dim culclone As CultureInfo = CType(culglobal.Clone, CultureInfo)


If culclone.DateTimeFormat.ShortDatePattern <> "dd/MM/yyyy" Then
            MessageBox.Show("Access has been denied, your system's regional settings is incorrect. Please contact your Administrator ", "Regional Settings Error", MessageBoxButtons.OK, MessageBoxIcon.Warning)
            Me.Dispose()
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.