Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have implemented the sliding image using imagelist and label but the image size is limit to 255x255 but the size of image i want to be 400 x 400
how to set that by default it is 16 x 16 i have set up to 255 x 255 but i want to set to 400 x 400 or more

on click of next button the next image displays but every image displays only in 16 x 16 or 255 x 255 but want increase in size of image pls help
this is the code i have implemented

using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Drawing; 
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CG_LEARN.working {
    public partial class applicationofcg : UserControl
    {
        private int indice;

        public applicationofcg()
        {
            InitializeComponent();
            indice = 0;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            indice++;

            if (indice > 7)
               indice = 0;
               label9.ImageIndex = indice;
        }

    }
}


What I have tried:

i have tried to increase the size of image but not getting increase in image pls help
by default is 16 x 16 and extend up to 255 x 255 but i want more then that 400 x 400 or more
Posted
Updated 21-Jun-18 4:23am

1 solution

You need to zoom the image to the required size. See image zoom c - Google Search[^]
 
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