Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels.

Here is my code:

Imports System.Net.Json

Public Class Form2

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim parser As New JsonTextParser
        Dim o As JsonObject = parser.Parse(TextBox1.Text)

        'This will segregate the data from o
        For Each f As JsonObjectCollection In o.GetValue
            With lv
                With .Items(.Items.Count - 1).SubItems
                End With
            End With
    End Sub
End Class

I am using System.Net.Json here which can be found here.
Download and install it and add it as reference in your project.

My problem is that, I want to display each record in a separate panel view. See screen shot attachment for a clear detail..

Hope anyone could help me achieve what i want to do.


Recommended Answers

All 3 Replies

anyone have an idea about this?

It looks like you are correctly accessing the JSON code as the data is appearing in your list view. Is your issue how to pass the data to another form?

yeah well my code works just fine. but the issue is that, i want to distribute each data to each individual panel... please see the attached screenshot for a better view of what i am referring to...


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.