Results 1 to 3 of 3

Thread: how can I check to see if something is null?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    how can I check to see if something is null?

    in vb6 there was Null and IsNull that we could use, but I dunno how to it in VB.Net. For example how can I check to see if the image of a picturebox is null or not?

    thanks in adance
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    40
    Try using "Is Nothing".

    I'm not sure as I'm not at my computer.

  3. #3
    Thelonius
    Guest
    For datatypes you can use ex: if myString = System.DBnull.Value then....

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