I only have codes that make each cmdbuttons to change its text to X when a user clicks at them.

I can't figure out how to make the computer decide which box it would want to pick.

Even if i wanted the comp to randomize and pick any buttons that are not yet chosen, how would i do that? I don't know if I can randomize buttons.. If you know what I mean.. Like..

VB Code:
  1. Dim RndPick As Integer
  2. Randomize
  3. RndPick = Rnd() * 9 + 1
  4. If RndPick = 1 Then Button1.Text = "O"

That's how I've thought of the comp choosing a button, but when it comes to the part where the comp has to block a 3 straight Xs...

Can someone get me started with this?

Thanks in advance.