winform幻灯片效果 知道一个大概的方法把图片路径放进一个数组再用另一个数组保存显示顺序最后用个timer和 picturebox来显示效果不过以前没弄过想寻求段各位以前弄过的代码在这里先谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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; } 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++; } 表达式求值X+++--X的计算顺序是怎么样的? C#数据库 执行效率问题 如何将字符串放入WHERE 列名 IN (这里面) 在线等,标题要长。。。。。。。。。。。。。。。。。。。。。。 [多线程问题]这个多线程该怎么写? 中文生成PDF文件出现“????”,请高手帮忙解决一下。 急求!急!关于MySqlDataAdapter的填充问题 初学者问题? winform 紧急求助,vs.net无法安装了?曾经安装过几次了 关于C#事务的问题 请教取消事件的办法
{
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; }
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++;
}