GTA_doum
New member
Hello,
I'm transferring my code from Outlook VBA to VSTO VB.Net. I'm using a ComboBox on a form, and on those two lines, when preparing the ComboBox from code, it takes too much time, making the form unusable:
ComboBox_multi_colonnes_Projet.DataSource = ProjetslisteBindingSource
ComboBox_multi_colonnes_Projet.ValueMember = "N°"
The Binding source is a query selecting four fields from one table. The query takes one second to run with SQL server management studio, and returns 28000 rows.
Any suggestions to make it faster?
Funny thing is that in VBA, loading the same data within a ComboBox would take less than 3 seconds:numbness:! Ah the mistery of upgrading to new technologies...
I'm transferring my code from Outlook VBA to VSTO VB.Net. I'm using a ComboBox on a form, and on those two lines, when preparing the ComboBox from code, it takes too much time, making the form unusable:
ComboBox_multi_colonnes_Projet.DataSource = ProjetslisteBindingSource
ComboBox_multi_colonnes_Projet.ValueMember = "N°"
The Binding source is a query selecting four fields from one table. The query takes one second to run with SQL server management studio, and returns 28000 rows.
Any suggestions to make it faster?
Funny thing is that in VBA, loading the same data within a ComboBox would take less than 3 seconds:numbness:! Ah the mistery of upgrading to new technologies...