if (pictureBox.Image != null)
{
//有图片
}
else
{
//无图片
}
或
if (pictureBox.ImageLocation!= null)
{
//有图片路径
}
else
{
//无图片路径
}
黑色头发:http://heisetoufa.iteye.com/
微信扫一扫
if (pictureBox.Image != null)
{
//有图片
}
else
{
//无图片
}
或
if (pictureBox.ImageLocation!= null)
{
//有图片路径
}
else
{
//无图片路径
}
黑色头发:http://heisetoufa.iteye.com/
相关推荐