Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I was wondering if there was an object you can use from the toolbox that can display pictures. I am creating a program where there are radiobuttons and if the user selects a certain radiobutton then a certain picture is displayed. I've found the picturebox, but it doesn't work!
Posted
Updated 11-Mar-12 6:34am
v2
Comments
Sergey Alexandrovich Kryukov 10-Mar-12 17:48pm    
Why just toolbox? Using designer too much?
The answer depends on application type and UI library you want to use. WPF? Forms? ASP.NET? Silverlight?
--SA
Commander Uzzy 10-Mar-12 18:05pm    
I'm using application form! As for the UI library, I have no clue what that is, I'm a beginner btw! :D
Sergey Alexandrovich Kryukov 10-Mar-12 22:53pm    
Then tag it: If Windows.Forms, tag "Form", it Web form, tag "ASP.NET".
"UI" means user interface. For example, System.Windows.Forms is the UI library, another one if WPF...
--SA

You can display pictures in PictureBox control. A detailed example is given here

http://www.functionx.com/vcsharp/controls/picturebox.htm[^]
 
Share this answer
 
Comments
ProEnggSoft 15-Mar-12 13:50pm    
Thank you.
Commander Uzzy 16-Mar-12 0:07am    
Your Welcome! Your help is valued by me and my quest to learn C#!
Uhhh, you haven't really looked in the ToolBox, have you? Try looking under the "All Windows Forms" or "Common Controls" tabs. It's pretty obvious.
 
Share this answer
 
this is an easy question if you are using visual studio than in Toolbox(left side) look for picture box it will display images.OKK
 
Share this answer
 

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