Click here to Skip to main content
14,303,166 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 3

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

http://www.functionx.com/vcsharp/controls/picturebox.htm[^]
   
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#!
Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100