Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2138
| From | GS <gs@somewhere.net> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion |
| Subject | Win8 & VB6 |
| Date | 2014-08-28 17:55 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lto8fv$jna$1@dont-email.me> (permalink) |
Cross-posted to 2 groups.
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?
--
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Back to comp.lang.basic.visual.misc | Previous | Next — Next in thread | Find similar | Unroll thread
Win8 & VB6 GS <gs@somewhere.net> - 2014-08-28 17:55 -0400
Re: Win8 & VB6 john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2014-08-28 23:58 +0100
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-28 20:46 -0400
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-28 20:49 -0400
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-28 20:58 -0400
Re: Win8 & VB6 john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2014-08-29 12:16 +0100
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-29 07:42 -0400
Re: Win8 & VB6 ObiWan <obiwan@mvps.org> - 2014-08-29 09:53 +0200
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-29 05:37 -0400
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-29 05:44 -0400
Re: Win8 & VB6 ObiWan <obiwan@mvps.org> - 2014-08-29 12:59 +0200
Re: Win8 & VB6 GS <gs@somewhere.net> - 2014-08-29 07:55 -0400
csiph-web