StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
Doevents...
Doevents...
Post Reply
Like
0
Doevents...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
StrataFrame Team
S
StrataFrame Team
posted 17 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
You can get the list to repaint by using BeginUpdate and EndUpdate. That's your best bet. Call BeginUpdate when you want to start the process, and then call EndUpdate() when you want the list to refresh... just remember to call BeginUpdate again before you continue along your loop.
Reply
Like
0
StarkMike
StarkMike
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 436,
Visits: 944
I've heard that using DoEvents is a bad practice but when I'm in a loop and adding items to say a listview its the only thing i know of that refreshes the listview so i can see the progress.
Any advice?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search