kfirba
Well-known member
- Joined
- Dec 29, 2012
- Messages
- 77
- Programming Experience
- 1-3
Hello!
I have a database table which contains movies information. The information stored contains the movie's name, description, photo, and an ID.
I want to display on the form the photo of the movie in a picturebox and the name of the movie in a label.
In order to display many movies, I have to use a loop that will go through each record in the table. In order to do that, I'm going to create a list of pictures and labels and create the controls. after that, I'm going to print the controls on the form.
I want to create an event to the picturebox that whenever I click the picturebox, it's gonna make a form pop and show a bigger image of the movie and the description of the movie. I want that whenever I click on the picturebox, it's gonna set a variable with the movie ID and pass it to the next form so the next form can retrieve the information about the movie and display it. Unfortunately, I have NO idea how to do it, or if it's even possible.
I would like to get help!
Thanks in advance!
I have a database table which contains movies information. The information stored contains the movie's name, description, photo, and an ID.
I want to display on the form the photo of the movie in a picturebox and the name of the movie in a label.
In order to display many movies, I have to use a loop that will go through each record in the table. In order to do that, I'm going to create a list of pictures and labels and create the controls. after that, I'm going to print the controls on the form.
I want to create an event to the picturebox that whenever I click the picturebox, it's gonna make a form pop and show a bigger image of the movie and the description of the movie. I want that whenever I click on the picturebox, it's gonna set a variable with the movie ID and pass it to the next form so the next form can retrieve the information about the movie and display it. Unfortunately, I have NO idea how to do it, or if it's even possible.
I would like to get help!
Thanks in advance!