Click here to Skip to main content
15,913,587 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello. I wanna ask if I can insert more than one picture in a picturebox. thq u
Posted
Comments
BillWoodruff 29-Dec-14 5:43am    
As CPallini tells you, the answer is "no." If you want to show multiple Images in a PictureBox, you'd have to do some programming to create a composite bitmap and then display it in the PictureBox by assigning it to the PictureBox's Image property.

A simple way to accomplish having a group of Images in the same ContainerControl is to just use a Panel and put as many PictureBoxes as you require in that Panel.

For what they are, PictureBoxes are quite useful, and make "good common sense" for use for what they are intended for.

You cannot. You may assign just one Image at time to a picture box.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Dec-14 3:44am    
Of course you are right. The "tricks" shown in Solution 2 are still based on having just one image per instance of this control. The real thing is: PictureBox class is a poorly redundant one for .NET FCL and could be even useful for some most rudimentary chores if it would not be so massively confusing to the beginners. Our inquirers try to misuse this class with disappointing regularity... :-)
—SA
CPallini 29-Dec-14 4:02am    
Thank you, Sergey.
 
Share this answer
 
Comments
BillWoodruff 29-Dec-14 5:23am    
Neither one of those links really addresses the question asked, and the first one does not show source code and has a broken link to download the 'dll required.

Note: I did not down-vote this.
ridoy 29-Dec-14 5:27am    
But probably op found it helpful someway, as he up-voted it and accept the solution, :)
BillWoodruff 29-Dec-14 15:32pm    
Well, as Kurt Vonnegut Jr. wrote in Cat's Cradle: "and so it goes" :)

Happy New Year, Bill
Member 11308295 29-Dec-14 10:15am    
thq u all for the help . I really appreciate it:D
ridoy 29-Dec-14 10:18am    
welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900