1 Replies - 4934 Views - Last Post: 10 November 2009 - 07:30 PM Rate Topic: -----

#1 efficacious  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 55
  • Joined: 09-November 09

How to check a Picture box for input

Post icon  Posted 10 November 2009 - 07:09 PM

Hello all,

I have a picture box in which I use an openfiledialog and allow the users to browse for a pic and load it in.
The plan is to save this pic along with other info.

My problem is that I'm trying to keep a bit of validation on the form and I can't figure out how to check for null or empty with the picture box.

Thank you for helping.
Is This A Good Question/Topic? 0
  • +

Replies To: How to check a Picture box for input

#2 efficacious  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 55
  • Joined: 09-November 09

Re: How to check a Picture box for input

Posted 10 November 2009 - 07:30 PM

Nvm i think i got it...

Just have to redue my code a bit

if(picturebox.Image == null)
{
   MessageBox.Show("The image box is empty!");
}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1