Posted by: nepali8 April 24, 2011
IT -- Solutions Center[Forum]
Login in to Rate this Post:     0       ?        
 hey guys!!!

need help in c#

i need some information on  radio button and picture box in windows form programming. what i am trying to do is, whenever user checked on a radion button, it should display message and  the image should open on pciture box. i have already done displaying message whenever user checked on radio button. but im stuck on displaying image on picture box. 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
namespace chapter9
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void btnskiing_CheckedChanged(object sender, EventArgs e)
        {
            if (btnskiing.Checked == true)
                MessageBox.Show("Get Ready");
            }
 
        private void btnRunning_CheckedChanged(object sender, EventArgs e)
        {
            if (btnRunning.Checked == true)
                MessageBox.Show("Get Your shoes ready");
        
        }
 
        private void btnSwimming_CheckedChanged(object sender, EventArgs e)
        {
            if (btnSwimming.Checked == true)
                MessageBox.Show("Get Your swim suit");
        }
 
        private void btnBasketball_CheckedChanged(object sender, EventArgs e)
        {
            if (btnBasketball.Checked == true)
                MessageBox.Show("Are you ready hit the score");
        }
 
        private void btnSoccer_CheckedChanged(object sender, EventArgs e)
        {
            if (btnSoccer.Checked == true)
                MessageBox.Show("Goal, Goal, Goal");
        }
 
        }
    }
 
 

thanks for help!!




Read Full Discussion Thread for this article