K
ksukat63
Guest
Greetings,
I have developed a winform application using c# in visual studio 2015.
In the form I use a binding source. It is setup as follows:
1. a List <t> of objects is created called listLocs. It contains between 5 and 100 objects. Verfied.
2. The binding source is named blocSource and is assigned
blocSource.DataSource = listLocs;
3. On the form I have a toolstrip with toolstripbuttons. One of the toolstripbuttons has an click event handler
if (blocSource.Position + 1 < blocSource.Count)
blocSource.MoveNext();
else
blocSource.MoveFirst();
The problem I have is that when you press the toolstripbutton (click), the blocSource.MoveNext() takes 6 to 13 seconds. I cannot figure out what is causing the delay. I have verified that the datasource list<t> is not big.
any ideas greatly appreciated.
Continue reading...
I have developed a winform application using c# in visual studio 2015.
In the form I use a binding source. It is setup as follows:
1. a List <t> of objects is created called listLocs. It contains between 5 and 100 objects. Verfied.
2. The binding source is named blocSource and is assigned
blocSource.DataSource = listLocs;
3. On the form I have a toolstrip with toolstripbuttons. One of the toolstripbuttons has an click event handler
if (blocSource.Position + 1 < blocSource.Count)
blocSource.MoveNext();
else
blocSource.MoveFirst();
The problem I have is that when you press the toolstripbutton (click), the blocSource.MoveNext() takes 6 to 13 seconds. I cannot figure out what is causing the delay. I have verified that the datasource list<t> is not big.
any ideas greatly appreciated.
Continue reading...