Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2143
| From | ObiWan <obiwan@mvps.org> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion |
| Subject | Re: Win8 & VB6 |
| Date | 2014-08-29 09:53 +0200 |
| Organization | - |
| Message-ID | <20140829095319.000000c1@albasani.net> (permalink) |
| References | <lto8fv$jna$1@dont-email.me> |
Cross-posted to 2 groups.
:: On Thu, 28 Aug 2014 17:55:08 -0400
:: (comp.lang.basic.visual.misc,microsoft.public.vb.general.discussion)
:: <lto8fv$jna$1@dont-email.me>
:: GS <gs@somewhere.net> wrote:
> Does anyone have any idea why \win8 throws an error?
when the load event fires, you aren't guaranteed that all the controls
on the form have already been drawn and in some cases the setfocus
throws an error so it's common practice moving the "setfocus" into the
"Activate" event; to avoid repeating the setfocus over and over just
add a static boolean variable and use it as a semaphore; for example
Sub Form_Activate()
Static bFirstTime As Boolean
If Not bFirstTime Then
bFirstTime = True
txtLicenseKey.SetFocus
End If
End Sub
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | 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