本帖最後由 arthurliuliu 於 2011-5-28 07:48 PM 編輯
- 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 WindowsFormsApplication1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
- {
- }
- private void pictureBox2_Click(object sender, EventArgs e)
- {
- }
- private void button2_Click(object sender, EventArgs e)
- {
- // Show the Open File dialog. If the user clicks OK, load the
- // picture that the user chose.
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- pictureBox1.Load(openFileDialog1.FileName);
- }
- }
- private void 位置_FileOk(object sender, CancelEventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if(openFileDialog1)<<<<這裡我想設置按了之後會變成上一張圖片
- }
- private void button3_Click(object sender, EventArgs e)
- {
- (這裡按了會變下一張圖片)
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- }
- }
- }
複製代碼 請問上述兩個地方該怎麼做勒... |