if (pictureBox.Image != null)
{
//有图片
}
else
{
//无图片
}
或
if (pictureBox.ImageLocation!= null)
{
//有图片路径
}
else
{
//无图片路径
}
黑色头发:http://heisetoufa.iteye.com/
c# winform 判断picturebox有无显示图片
阅读 49
2023-04-27
if (pictureBox.Image != null)
{
//有图片
}
else
{
//无图片
}
或
if (pictureBox.ImageLocation!= null)
{
//有图片路径
}
else
{
//无图片路径
}
黑色头发:http://heisetoufa.iteye.com/
相关推荐
精彩评论(0)