using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int imageNum = -1;
private void pictureBox1_Click(object sender, EventArgs e)
{
imageNum = (imageNum + 1) % 3;
switch (imageNum)
{
case 0:
pictureBox1.ImageLocation = "01.jpg";
break;
case 1:
pictureBox1.ImageLocation = "02.jpg";
break;
case 2:
pictureBox1.ImageLocation = "03.jpg";
break;
}
}
}
}
这个程序我应该把图片保存在哪个目录里?
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int imageNum = -1;
private void pictureBox1_Click(object sender, EventArgs e)
{
imageNum = (imageNum + 1) % 3;
switch (imageNum)
{
case 0:
pictureBox1.ImageLocation = "01.jpg";
break;
case 1:
pictureBox1.ImageLocation = "02.jpg";
break;
case 2:
pictureBox1.ImageLocation = "03.jpg";
break;
}
}
}
}
这个程序我应该把图片保存在哪个目录里?