Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2248
| From | Deanna Earley <dee@earlsoft.co.uk> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: A little help |
| Date | 2015-04-08 10:51 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mg2top$qge$1@speranza.aioe.org> (permalink) |
| References | <mfrdln$ic3$1@speranza.aioe.org> <mfrjeh$jbk$1@dont-email.me> <mfrsd5$obb$1@speranza.aioe.org> <mg1kkv$fo0$1@dont-email.me> <mg1lf7$64t$1@speranza.aioe.org> |
On 07/04/2015 23:24, Stl Mongo wrote: > I'm using .NET (VB 2012). The issue I was having was with the text on > the label not showing during each iteration. By adding the Refresh() > function I was able to fix that. > > I actually went back after earlier today and commented out the Refresh() > and tried DoEvents() again and it worked that way also. I'm not sure why > it didn't work before, but I'm sure it was my mistake. > > Thanks again for your help. In summary, drawing (updated text or graphics) is normally only done when you explicitly ask for a redraw (with .Refresh) or the message pump is run (DoEvents). Most graphical operations just update internal state and set a flag saying "redraw required". This stops CPU being chewed up when something isn't actually visible. -- Deanna Earley (dee@earlsoft.co.uk, dee@doesnotcompute.co.uk) (Replies direct to my email address will be printed, shredded then fed to the rats. Please reply to the group.)
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Find similar | Unroll thread
A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-05 08:34 -0500
Re: A little help Ron Weiner <rw@domain.com> - 2015-04-05 11:14 -0400
Re: A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-05 12:46 -0500
Re: A little help mike <spamme9@gmail.com> - 2015-04-07 01:06 -0700
Re: A little help Michael Cole <noone@invalid.com> - 2015-04-08 08:11 +1000
Re: A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-07 17:24 -0500
Re: A little help Deanna Earley <dee@earlsoft.co.uk> - 2015-04-08 10:51 +0100
csiph-web