Dim Buffer As String * 100
Dim lngLocale As Long
Dim GetLanguage As String
lngLocale = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILZERO, Buffer, 99)
GetLanguage = LPSTRToVBString(Buffer)
If GetLanguage = 0 Then SetLocaleInfo lngLocale, LOCALE_ILZERO, 1
能否让这个代码在窗体打开时自动把控制面版里的设置改为显示前导0?
原帖由 sunny-xie 于 2008-3-31 17:08 发表
Dim Buffer As String * 100
Dim lngLocale As Long
Dim GetLanguage As String
lngLocale = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILZERO, Buffer, 99)
GetLanguage = LPSTRToVB ...