知道一个大概的方法
把图片路径放进一个数组
再用另一个数组保存显示顺序
最后用个timer和 picturebox来显示效果不过以前没弄过
想寻求段各位以前弄过的代码在这里先谢谢了

解决方案 »

  1.   

        private void timer1_Tick(object sender, EventArgs e)
            {
                if (_Index > _ImageList.Count-1) _Index = 0;
                pictureBox1.Image = _ImageList[_Index];
                _Index++;
            }        private IList<Image> _ImageList = new List<Image>();
            private int _Index = 0;
            private void button5_Click(object sender, EventArgs e)
            {
                _ImageList.Add(Image.FromFile(@"c:\1.BMP"));
                _ImageList.Add(Image.FromFile(@"c:\b.BMP"));            timer1.Interval = 1000;
                timer1.Enabled = true;        }
      

  2.   

            Dictionary<int, string> paths = new Dictionary<int, string>();
            int j = 0;
     private void button3_Click(object sender, EventArgs e)
            {
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    string[] str = openFileDialog1.FileNames;
                    for (int i = 0; i < str.Length; i++)
                    {
                        paths.Add(i, str[i]);
                    }
                }
                timer1.Enabled = true;
                timer1.Interval = 2000;
            }        private void timer1_Tick(object sender, EventArgs e)
            {
                if (paths.ContainsKey(j))
                {
                    pictureBox1.Image = Image.FromFile(paths[j]);
                }
                j++;
            }