Results 1 to 4 of 4

Thread: Check if picture box exisits

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    30

    Check if picture box exisits

    I am working on a project "Pacman Game" and I almost did everything except of.
    How can I check that the food number is zero?
    The food is a picture box.
    Thank you.

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Check if picture box exisits

    vb Code:
    1. this.controls.contains(PicboxFood);
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Check if picture box exisits

    Quote Originally Posted by Lightning View Post
    vb Code:
    1. this.controls.contains(PicboxFood);
    Since this is the VB.NET forum and not the C# forum, that would be:

    Code:
    Me.Controls.Contains(PicboxFood)
    ...in VB.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Check if picture box exisits

    Damn
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

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