Using C# in Visual Studio 2010 and Microsoft SQL, I need a Windows form written that will get a list of images and videos from an SQL table and populate a panel on a windows form. The SQL table will only contain the filepath of where the images/videos will be located. The images and videos will be stored on the hard drive in a folder. The list of images on the form will need to display the images or videos in a list that goes from left to right and then top to bottom. I am thinking that the list will be in a panel but it could be in some other control as long as I can change the size and location of that control so that as I change the size of the control, the number of images will change. The images will be of type bmp or tif and I will supply those. The images need to be displayed on the form such that they are about 20% of their actual size. When the user clicks on an image then that image needs to be displayed at full size in a separate area on the form. The list can also contain videos and the first or last frame of the video needs to be displayed and if the user clicks on a video then the video needs to play at full size in another area on the form.
I need all source code as this will need to be able to make modifications to it.