[vb2005] graphics lag at startup

G

Guest

when my form loads, it doesn't instantly display properly.
i've tried doevents + refresh but both comboboxes on my form take a few
seconds to display properly.
i've got a backgroundworker that i call in the form_load event, that loads
12000+ items into a listview but that shouldn't slow the loading down?
 
P

PlatinumBay

Paul,

Yes, that could be slowing the form down, as the loading of the items is
most likely happen synchronously to the rest of the form. Maybe add a
splash screen from the Add New Item dialog, and link it in using the project
properties. It will show on startup while the form loads.

Or implement an asynchronous loading mechanism?


Hope this helps,

Steve
 
G

Guest

Hi,
Try using BeginUpdate and EndUpdate methods while filling ComboBoxes and
ListView.By using BeginUpdate/Endupdate the control would not redraw itself
every time you add items to it.For example,
Try
With cbo
.BeginUpdate()
.ValueMember = SomeValueMember
.DisplayMember = SomeDisplayMember
.DataSource = dt
.EndUpdate()
End With

Catch ex As Exception

' Custom error handler

End Try
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top