ok i guess this is too much difficult for me..
stations it's correctly filled but combobox1 is empty.
i keep on matrix.
it takes longer,very hard to inquiry but it works
many thanks to all of you
Printable View
ok i guess this is too much difficult for me..
stations it's correctly filled but combobox1 is empty.
i keep on matrix.
it takes longer,very hard to inquiry but it works
many thanks to all of you
you can create a Access .mdb and Access doesn't have to be Installed
on your Company PC
as easy as thatCode:Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click
'Add the COM Reference, "Microsoft ADO Ext. 6.0 for DLL and Security"
' create the empty DB file
Dim cat As New ADOX.Catalog()
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Berichte\Backup.mdb")
cat = Nothing
End Sub
at the end i solved in this way :
maybe it will help somebody elseCode:Dim partenzaStations = From n In treno1.AsEnumerable()
Where n.Field(Of String)("Partenza") IsNot Nothing
Select n.Field(Of String)("Partenza")
Dim arrivoStations = From n In treno1.AsEnumerable()
Where n.Field(Of String)("Arrivo") IsNot Nothing
Select n.Field(Of String)("Arrivo")
Dim stations = partenzaStations.Concat(arrivoStations).Distinct().OrderBy(Function(s) s).ToArray()
ComboBox1.DataSource = stations.ToArray
ComboBox1.SelectedIndex = -1