I am making a question and answer program and I sorted 1 issue out with the help of a member and am back for some more advice this time how to add items to a listview box so i will begin

so as you can see I have the design ready and all running great I can select a number and go to that question no problems at all
what I am now trying to do is when I click a button on another form in the collem where it states flag have a X put in the box but also be able to remove it as well.
So say I click the button on question 1 I what it to show an X in the flagged collem of question 1
so it would look like this
Question Flagged Answerd
1 X
and when i click on the button again it would look like this
Question Flagged Answerd
1
is this possible to do with a listview1 any help would be much appricated and I am very greatful for any advice given
if you don't know the answer and do know where I could find the answer Please leave a link so I can find the answer somewhere else
code I have so far
PictureBox1.Visible = True And PictureBox1.Visible = False
If PictureBox1.Visible = True Then
Form3.ListView1.Items(0) = ("1 X")
ElseIf PictureBox1.Visible = False Then
Form3.ListView1.Items(0) = ("1")
End If
this code worked for listbox1 but am getting errors in listview1
they are as follows
Error 1 Value of type 'String' cannot be converted to 'System.Windows.Forms.ListViewItem'
Error 2 Value of type 'String' cannot be converted to 'System.Windows.Forms.ListViewItem'
perhaps I have the code wrong for what I am trying to achive not sure but works perfectly with listbox1
Many Thanks For Any Help You Can Offer
Kind Regards
BJseal91

New Topic/Question
Reply




MultiQuote





|