Click here to Skip to main content
15,904,652 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
This is my code

C#
Point lastClicked;
  private void Form1_MouseDown(object sender, MouseEventArgs e)
  {
      lastClicked = e.Location;
  }

  private void Form1_MouseUp(object sender, MouseEventArgs e)
  {

  }


  private void Form1_MouseMove(object sender, MouseEventArgs e)
  {
      if (e.Button == MouseButtons.Left)
      {
          this.Left += e.X - lastClicked.X;
          this.Top += e.Y - lastClicked.Y;
      }
  }


When I drag my form up the areo doesn't work in windows 7 with the from, and i would like it to do the areo on my drag-able form, plus can some please explain why it doesn't do the areo?

areo = when i drag the from up to the top of my screen the from maximizes
Posted

 
Share this answer
 
Comments
[no name] 5-Apr-12 22:30pm    
This is the normal C# form not the WPF so I can't find the XML part
It does not work because image is being dragged as solid bitmap. You may play with opacity of that bitmap to simulate Auro effect.
 
Share this answer
 
Comments
[no name] 5-Apr-12 18:03pm    
ok thank you, but do you think you can activate the Auro effect instead of simulate it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900