© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
12 replies
sterbuk

How can I assign a picture to a picturebox in the code?

I want to put multiple pictures in one picturebox, like you click on the button and it changes to a random one. But how do I assign the picture to the picturebox if you what I mean?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How do I add a picture in a picturebox in code?
C#CC# / help
2y ago
❔ How do I draw correctly on a PictureBox
C#CC# / help
3y ago
❔ How can I create a picture box outside a form
C#CC# / help
4y ago