I decided to program a simple application. And I need advice. I must point out that I'm a complete beginner, yesterday I started with VB ...
I have a listbox:
Code:
listUzivatelu.Items.Clear ()
listUzivatelu.Items.AddRange (databaze.VratVsechny ())
And I needed it to appear in the ListView:
Code:
Dim TempStr (1) As String
TempStr (0) = "1111"
TempStr (1) = "Doe, John"
ListView1.Items.Add (New ListViewItem (TempStr))
But when I write databaze.VratVsechny () so it just throws an error.
databaze.VratVsechny() returns:
Code:
Public Function VratVsechny () As Product ()
Return Vyrobek.ToArray ()
end Function
I'm attach source code: https://www.dropbox.com/s/btg5c66wva...ni-objektu.zip
Thanks in advance for any advice on the topic.
I have a listbox:
Code:
listUzivatelu.Items.Clear ()
listUzivatelu.Items.AddRange (databaze.VratVsechny ())
And I needed it to appear in the ListView:
Code:
Dim TempStr (1) As String
TempStr (0) = "1111"
TempStr (1) = "Doe, John"
ListView1.Items.Add (New ListViewItem (TempStr))
But when I write databaze.VratVsechny () so it just throws an error.
databaze.VratVsechny() returns:
Code:
Public Function VratVsechny () As Product ()
Return Vyrobek.ToArray ()
end Function
I'm attach source code: https://www.dropbox.com/s/btg5c66wva...ni-objektu.zip
Thanks in advance for any advice on the topic.