string ImagePath = @"c:\test\image1.jpg;c:\test\image2.jpg;c:\test\image3.jpg;c:\test\image4.jpg;"; flowLayoutPanel1.FlowDirection = FlowDirection.TopDown; flowLayoutPanel1.AutoScroll = true; foreach (string s in ImagePath.Split(new char[]{';'}, StringSplitOptions.RemoveEmptyEntries)) { PictureBox pb = new PictureBox(); pb.Height = flowLayoutPanel1.Height; pb.Image = Image.FromFile(s); flowLayoutPanel1.Controls.Add(pb); }
le problème [...] c'est de les ajouter/récupérer d'une base de données
oui, c'est ca, mais comment faire ? merci bcp
stoker l'image elle mêmeJe déconseille fortement de stocker les images directement dans la BDD.
select image from table where nom like%' bernard'%, la suivante image de bernard ...j'éspére que j'ai été clair, maitenant
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionSELECT * FROM table where nom like '%bernard%'
SELECT * FROM table where id = 'xxxx'