User Profile

Collapse

Profile Sidebar

Collapse
kristu
kristu
Last Activity: Mar 3 '10, 05:49 PM
Joined: Jan 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to know the location of a button in a button array

    Hi

    i have a button array of [8,8]. know i want that when i press a button, i get the location of the button in the array, not which button is pressed but the location.I used the sender to do a tempbutton and therefore change the text of that particular button but i want its location....

    (the array is buttarr[8,8])

    ex: buttarr[1,2] was pressed

    can someone help

    Thanks
    See more | Go to post

  • kristu
    started a topic managing different loops in different events

    managing different loops in different events

    i have this code:
    Code:
    private void mouseclicks(object sender, EventArgs e)
                {
                    int clicks = 0;
                    clicks++;
                        if (clicks % 2 == 0)
                        {
                            label5.Text = "Player One's Turn";
                           
                            
                        }
                        else label5.Text
    ...
    See more | Go to post
    Last edited by RedSon; Jan 14 '10, 04:42 PM. Reason: Added CODE tags
No activity results to display
Show More
Working...