comeonbabe_ 2017-06-01 13:54 采纳率: 0%
浏览 634

剩下实在不知道该怎么写了,求大家看一下吧

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;
using System.Collections;

namespace WindowsFormsApplication24
{
public partial class Form1 : Form
{
ArrayList imglist = new ArrayList();

public Form1()
{
InitializeComponent();
}

    private void 文件FToolStripMenuItem_Click(object sender, EventArgs e)
    {

    }

    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void 帮助HToolStripMenuItem_Click(object sender, EventArgs e)
    {

    }

    public void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
    {
        OpenFileDialog oFD = new OpenFileDialog();
        oFD.Filter = "图像|*.jpg;*.gif;*.png";
        if (oFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            pictureBox1.Load(oFD.FileName);
        imglist.Add(oFD.FileName);


    }

}

}
剩下的是上一张下一张的按钮,但是我不知道该怎么写,网上面的太乱了

  • 写回答

1条回答 默认 最新

  • 全栈极简 博客专家认证 2017-06-01 13:57
    关注

    private int index;

    下一张
    index++;
    pictureBox1.Load(imglist[index]);

    上一张
    index--;
    pictureBox1.Load(imglist[index]);

    做个判断

    评论

报告相同问题?

悬赏问题

  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度