On win10 system, when drag a shape, the driagrm's previewkeydown event trigger.
on win7 system this case is not exist,
on win10 system, when open the vs with administrator, the case is also not exist
attached is the demo
Is any resolution to resolve this issue
4 Answers, 1 is accepted
It seems that your demo project failed to attach. Could you resend it so we can investigate the behavior mentioned in your post on our side?
Thank you for your cooperation.
it seem i can only attach a picture file
the demo is simple when drag a shape the previewmousedown envnt is raised
code like this :
private void diagram_PreviewKeyDown_1(object sender, KeyEventArgs e)
MessageBox.Show("Win10 system when drag a node this event trigger");
We weren't able to reproduce the described behavior. We have tested it on several different machines with different OS systems (Win10, Win 8.1, Win 7) with no success.
As a side note, it sounds very strange that PreviewKeyDown event is called when RadDiagramShape is dragged. You can double check your code if there could be any other reason causing this behavior. We have attached to this reply the sample project which we were using to test your scenario. You can check it if we are missing something.
We are looking forward to your answer.
The demo you sent is almost same as my side's
but It is strange that the problem is not exist now on my side
It is not a certain problem
I will continue to observe it