Is there a way to know when a user is dragging a RadTitleBar around?
I tried to have a ShapedForm with a RadTitleBar, and catch the events in the MouseDown and MouseUp events for the titlebar with the following :
The problem is that I don't always get the MouseUp event. I get the event about once every 20 times I tried it. Is there a problem with the mouseup event, or is there another way I can get the info about the start/stop of dragging a form around?
I tried to have a ShapedForm with a RadTitleBar, and catch the events in the MouseDown and MouseUp events for the titlebar with the following :
| private void radTitleBar1_MouseDown(object sender, MouseEventArgs e) |
| { |
| if (e.Button == MouseButtons.Left) |
| { |
| txtTest.Text = "Down"; |
| } |
| } |
| private void radTitleBar1_MouseUp(object sender, MouseEventArgs e) |
| { |
| if (e.Button == MouseButtons.Left) |
| { |
| txtTest.Text = "Up"; |
| } |
| } |
The problem is that I don't always get the MouseUp event. I get the event about once every 20 times I tried it. Is there a problem with the mouseup event, or is there another way I can get the info about the start/stop of dragging a form around?