Jump to content

Listbox Cell Background Color Slow


shred444

Recommended Posts

Hey guys,

I have a function that reverts all the cells in a multi column listbox back to white. It consists of two for loops (one for each row, one for each column)

psuedo code:

For each rowFor each ColumnSet this row,column as active cellchange the background color of this active cell to whiteend loopend loop

I understand that redrawing the screen is processor intensive, so i defer panel updates. The problem is, this function is still taking several seconds to complete. For a 1024 row listbox with 5 rows, it takes 3 to 5 seconds. Is there something I'm forgetting?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.