C# Dragging Buttons in an Area
<p>I have a homework from school and im stuck.</p>

<p>I must do a program like " <a href="http://www.beyinsporu.com/kelime-zinciri.php" rel="nofollow">http://www.beyinsporu.com/kelime-zinciri.php</a> " this game.</p>

<p>As you can see there some buttons in-line and they make a word and 2 more letter at the bot.</p>

<p>In the game, you must drag buttons behind the other word and a new word will create.</p>

<p>For Example;</p>

<p>You have " add " word in the screen and you  "h", "e" buttons.</p>

<p>After this you have drag "h" and "e" buttons before the "add" word and it must detect "head" word.</p>

<p>The problem is how can i detect is any button dragged in correct area ?.</p>

<p>I hope you can understand my English ^_^ if you not, please tell me to correct it.</p>

<p>It's Windows Form. Microsoft visual Studio 2010.</p>

<p>My button dragging codes;</p>

<pre><code>  bool dragging = false;
  Point first;  
  private void button23_MouseDown(object sender, MouseEventArgs e)
    {
        dragging = true;
        first = e.Location;
    }
    private void button23_MouseMove(object sender, MouseEventArgs e)
    {
        if (dragging == true)
        {

            button23.Left = e.X + button23.Left - (first.X);
            button23.Top = e.Y + button23.Top - (first.Y);
        }
    }
    private void button23_MouseUp(object sender, MouseEventArgs e)
    {
        dragging = false;

    }
</code></pre>
