Results 1 to 6 of 6

Thread: Picturebox [resolve]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    Resolved Picturebox [resolve]

    hey. how do i check whether a picture box is empty with an if statement?
    Last edited by ryanlum; Mar 3rd, 2005 at 09:47 AM.

  2. #2
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Picturebox

    .Image = Nothing

    ?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    Re: Picturebox

    i tried that earlier on already.
    i tried

    if picturebox.image = nothing then
    if picturebox.image = "nothing" then

    both of the lines cannot be used

  4. #4
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Picturebox

    Sorry. Something like this
    VB Code:
    1. If Not PictureBox1.Image [u]Is[/u] Nothing Then
    2.             MessageBox.Show("there is")
    3.         End If

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Picturebox

    Ryanlum, you don't read the compiler error messages do you!!!

    It really is very obvious.



    VB Code:
    1. how do i check whether a picture box is empty?
    Depends what you mean by empty anyway.
    I don't live here any more.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    Re: Picturebox

    haha. thx nebulom.

    wossname.. i do read the messages.. but i am still raw to vb .net so forgive me if i sound dumb....

    lack of syntax experiece

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width