Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27440

VS 2010 View object in the from listbox to ListView

$
0
0
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.

Viewing all articles
Browse latest Browse all 27440

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>