Results 1 to 5 of 5

Thread: *** is wrong with this!?!?!!?!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Up ur azz
    Posts
    3

    *** is wrong with this!?!?!!?!

    This is part of an if statement i made for the tic-tac-toe game i tlked about in "i, n00b"
    VB Code:
    1. If CheckBox1.ForeColor = System.Drawing.Color.Blue Then

    it says that the "=" operator is not legal or sum such bull
    HELP!!!



    plus i need to no how to make it so it says sutmhin like:
    "If CheckBox1.ForeColor [not equal to] System.Drawing.Color.Blue Then"

    how do i use a not equal to thing with this?



    ps. check out my site at www.ugrev.com and join FORUM MSX
    Last edited by XSkater; Jul 23rd, 2004 at 09:50 AM.
    everyone visit my website at

    WWW.UGREV.COM

    ...or else

    =)

  2. #2
    Lively Member carl_mathews200's Avatar
    Join Date
    May 2004
    Location
    Wales, UK
    Posts
    94
    this works, dont know if its the correct way though...

    Code:
    if checkbox1.forecolor.toargb = system.drawing.color.blue.toargb then
    ...
    end if

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    VB Code:
    1. if checkbox1.ForeColor.Equals(System.Drawing.Color.Blue)  then

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Up ur azz
    Posts
    3

    Talking

    i have to say that i love the response time of the people on this forum, its very very helpful!
    everyone visit my website at

    WWW.UGREV.COM

    ...or else

    =)

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by XSkater
    i have to say that i love the response time of the people on this forum, its very very helpful!
    just return the favor by answering others questions that you know the answers to. Helps the community thrive

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