Boolean Expressions in Visual Basic

The previous code used a Boolean expression that said to display "side" if the mouse was on the left OR the right.
We could also have said that the mouse was in the middle if e.X is greater than 10 AND e.X is less than the width of the form minus 20:
  If e.X > 10  And e.X < Me.Width - 20 Then
     Me.Text = "middle"
  Else
     Me.Text = "side"
  End If

Experiment: Change the code above to change the caption to "Target area" when the mouse is in each of the shaded areas:

1.        2.         3.         4.    
Try writing each problem two ways, once using And, again using Or.

NEXT: Check Boxes and Radio Buttons