C
C#9mo ago
Gonzo

unexpected problem in windows form

help
29 Replies
Gonzo
Gonzo9mo ago
fillGenre(); comboBox1.DataSource = Genres; comboBox1.DisplayMember = "Genre Type"; genretype = Genres.Rows[comboBox1.SelectedIndex]["Genre Type"].ToString(); says an error at the displaymember line that genre type already exists but this is the first instance of it in this code
Pobiega
Pobiega9mo ago
Do you really have a property on your genre object called Genre Types (space included)? because DisplayMember should be the name of the member that contains the data you wish to display
Gonzo
Gonzo9mo ago
hello pobiega my friend i fixed the issue i made a list in this class called book its called books
Pobiega
Pobiega9mo ago
great. then you can $close this thread
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
Gonzo
Gonzo9mo ago
i still have another problem so the list is called books its public static
Pobiega
Pobiega9mo ago
... static?
Gonzo
Gonzo9mo ago
yeah
Pobiega
Pobiega9mo ago
that means its not related to the instance
Gonzo
Gonzo9mo ago
there will only be 1 list for the book you understand me
Pobiega
Pobiega9mo ago
okay, so Book also has a list of books?
Gonzo
Gonzo9mo ago
like there will only be 1 default list for the books book is the class
Pobiega
Pobiega9mo ago
yes.
Gonzo
Gonzo9mo ago
inside the class i created a list of books
Pobiega
Pobiega9mo ago
and it has a static list of books?
Want results from more Discord servers?
Add your server