anubhav prabakar

anubhav prabakar

  • NA
  • 14
  • 7.2k

divide form into equal parts and select label

Jan 20 2014 9:38 AM

I have a windows form with 6 labels (more could be added) and a TextBox.

what i want to do :

1) Divide the form into 4 equal quadrants (Quadrants 1,2,3,4). (drawing two colored lined)

2) Color each quadrant for 3 seconds and turn it back to transparent in a sequence. It implies that Form quadrant 1 is red for 3 second then transparent. quadrant 2 is then red for 3 seconds and then transparent and so on infinately.
 
3) Once a mouse click event is encountered (could be anywhere on the form). Find the quadrant which was colored red at that time.
 
4) Check in this quadrant if (number of labels == 1) if yes-> show the label.text in the textbox. if not-> then start from step 1 by taking input as the coordinates and size of the currently colored quadrant.

I am a new at this. Can anyone please tell me how i do this.