GS
2014-08-28 21:55:08 UTC
I have a situation where the following code for a Form raises an error
(#5: Invalid procedure call or argument) running under Win8, but on XP
to Win7 it works fine...
Private Sub Form_Load()
With Me
.Caption = gsAPP_NAME ': .Icon = fAbout.Icon
.btnRegisterApp(LicenseReg.Validate).Enabled = _
(Me.txtLicenseKey <> "")
On Error Resume Next: .txtLicenseKey.SetFocus
End With
End Sub
..where changing as follows works without error...
Private Sub Form_Load()
With Me
.Caption = gsAPP_NAME ': .Icon = fAbout.Icon
.btnRegisterApp(LicenseReg.Validate).Enabled = _
(Me.txtLicenseKey <> "")
On Error Resume Next: Me.txtLicenseKey.SetFocus
End With
End Sub
Does anyone have any idea why \win8 throws an error?
(#5: Invalid procedure call or argument) running under Win8, but on XP
to Win7 it works fine...
Private Sub Form_Load()
With Me
.Caption = gsAPP_NAME ': .Icon = fAbout.Icon
.btnRegisterApp(LicenseReg.Validate).Enabled = _
(Me.txtLicenseKey <> "")
On Error Resume Next: .txtLicenseKey.SetFocus
End With
End Sub
..where changing as follows works without error...
Private Sub Form_Load()
With Me
.Caption = gsAPP_NAME ': .Icon = fAbout.Icon
.btnRegisterApp(LicenseReg.Validate).Enabled = _
(Me.txtLicenseKey <> "")
On Error Resume Next: Me.txtLicenseKey.SetFocus
End With
End Sub
Does anyone have any idea why \win8 throws an error?
--
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion