public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.pictureBox1.ImageLocation))
{
MessageBox.Show("请选择要插入的图片!");
return;
}
using (SqlConnectio