By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,088 Members | 1,512 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,088 IT Pros & Developers. It's quick & easy.

form refresh? repaint? doevents?

P: n/a
hey guys i have an ETL winform in VB 2005

and it's like-- off in la-la land.

i know it's doing things-- it's happily crunching away. but i'm
confused about what i need to do to make the main form refresh... or
repaint..

it's like.. it just looks hung (sorta like me lol jk)
and i just want something that LOOKS AND ACTS like a real app.

what can i do to make the form repaint itself/?

thanks

im kinda new to .NET;
i'm an Olap DBA

Apr 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<aa*********@gmail.com> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
hey guys i have an ETL winform in VB 2005

and it's like-- off in la-la land.

i know it's doing things-- it's happily crunching away. but i'm
confused about what i need to do to make the main form refresh... or
repaint..

it's like.. it just looks hung (sorta like me lol jk)
Oh... so, it's only slightly hung, eh? ;-)
and i just want something that LOOKS AND ACTS like a real app.

what can i do to make the form repaint itself/?
Well, I'm a VB6'er so all I can suggest is DoEvents. The functionality that
DoEvents provides will need to be there, regardless of any syntax
differences, if the form has to repaint. One thing that seems to confuse a
lot of people is... Screen updates are low priority. If they suddenly became
high priority, every app known to man would instantly slow to a crawl. The
trick is to find that magical combination of "let the screen update" vs
"crunch the code and spit out the results"
thanks

im kinda new to .NET;
i'm an Olap DBA


If you, or someone you know, is comfortable with quick VB6 migrations, here
are a couple of things that may help find that "magical combination"

Here's a contest winning article....

DoEvents evolution; the API approach. (Method for 100% optimized loops)
http://www.planetsourcecode.com/vb/s...29735&lngWId=1

.....and a project built using techniques from that article....

Optimized loop (no more doevents)
http://www.planetsourcecode.com/vb/s...37888&lngWId=1

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Apr 11 '06 #2

P: n/a
thanks man; i love this 2005.. it took my company 5 months to get me a
copy because i told them im not doing jack shit without edit and
continue

-Aaron

Apr 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.