V
V
Vatson7442020-05-12 17:57:37
In contact with
Vatson744, 2020-05-12 17:57:37

Is createdby not outputting to checkedlistbox?

Hello. Who knows, tell me how to display createdby in the vknet library.
the date and the text of the post itself are displayed, but the name of the publisher is not.

var wallsearch = vk.Wall.Search(new WallSearchParams

            {
                Fields=GroupsFields.All,
                OwnerId= -118780401,
                Query = searchstring,
                Extended = true,
                Count=1
              

            });

            foreach (var items in wallsearch.WallPosts)
            {

                {

                    checkedListBox4.Items.Add(items.CreatedBy + "---" + items.Date + "---" + items.Text);
                }
            }


the output is like this:
5ebab92b1b390327874379.jpeg
and before the date, there should also be the name of the publisher.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-12
@vatson_744

var item = $"{items.CreatedBy}---{items.Date}---{items.Text}";
// put debug point here
checkedListBox4.Items.Add(item);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question