I've just found a very strange behaviour about the datasource property of the listbox.
Here is the code:
Every time I select a different value of (for example) the listSpeedTx control, immediatly the same listSpeedRx value is selected.
Where is the link?
The obvious relationship is that both controls have the same datasource but why this behaviour?
The solution I find is that:
... and the link immediatly disappears.
Maybe there should be a link on the data but the link on the selection of the data is very strange.
Anyone has an answer?
Thank's
Davide
Here is the code:
Code:
public partial class SpeedSelection: Form
{
public SpeedSelection(int[] Speed)
{
InitializeComponent();
listSpeedTx.DataSource = Speed;
listSpeedRx.DataSource = Speed;
}
}
Where is the link?
The obvious relationship is that both controls have the same datasource but why this behaviour?
The solution I find is that:
Code:
public partial class SpeedSelection: Form
{
public SpeedSelection(int[] Speed)
{
InitializeComponent();
listSpeedTx.Items.AddRange(Speed);
listSpeedRx.Items.AddRange(Speed);
}
}
Maybe there should be a link on the data but the link on the selection of the data is very strange.
Anyone has an answer?
Thank's
Davide