Click here to Skip to main content
15,916,693 members
Home / Discussions / C#
   

C#

 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 2:31
sitebuilderLuc Pattyn19-Jul-07 2:31 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 2:48
Geert van Horrik19-Jul-07 2:48 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:04
Martin#19-Jul-07 3:04 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:20
sitebuilderLuc Pattyn19-Jul-07 3:20 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:22
Geert van Horrik19-Jul-07 3:22 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:24
Martin#19-Jul-07 3:24 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:28
Geert van Horrik19-Jul-07 3:28 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:38
Martin#19-Jul-07 3:38 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:39
Geert van Horrik19-Jul-07 3:39 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 4:01
Geert van Horrik19-Jul-07 4:01 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:13
Martin#19-Jul-07 4:13 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:44
Martin#19-Jul-07 4:44 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 5:06
Geert van Horrik19-Jul-07 5:06 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 7:02
Martin#19-Jul-07 7:02 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:18
Geert van Horrik19-Jul-07 21:18 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 21:23
Martin#19-Jul-07 21:23 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:35
Geert van Horrik19-Jul-07 21:35 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:47
Geert van Horrik19-Jul-07 21:47 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 21:58
Martin#19-Jul-07 21:58 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:29
sitebuilderLuc Pattyn19-Jul-07 3:29 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:33
Geert van Horrik19-Jul-07 3:33 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:51
sitebuilderLuc Pattyn19-Jul-07 3:51 
GeneralRe: Control updating is slow [modified] Pin
Luc Pattyn19-Jul-07 3:09
sitebuilderLuc Pattyn19-Jul-07 3:09 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:27
Geert van Horrik19-Jul-07 3:27 
Thanks for your message and taking the time to help me (same for Martin!).

First about the reader:

When you load everything into a dataset, it must load everything into memory. What I know is that the datareader is the fastest component since it is forward-only and read-only. The dataset is a complete copy of the part of the database which you can edit and update.

Now back to the real problem:

I have a combobox control which loads the db data as soon as I construct the form. So, before I even call the Show form, the combobox already has all the values listed. This process doesn't take very long (about 2 seconds) to list the data from the db and store it in the combobox items property.

However, as soon as I show the form, it takes long (and the items property doesn't get changed anymore at that moment).

That's why I am confused.

-----
Geert

Need an advanced auto-update feature for your software? Try Updater!
Visit my website: http://www.catenalogic.com

GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:40
sitebuilderLuc Pattyn19-Jul-07 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.