|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
ToolStripItem.QueryContinueDrag Evento
Assembly: System.Windows.Forms (em System.Windows.Forms. dll)
If the user moves out of a window, the DragLeave event is raised. If the mouse enters another item, the DragEnter for that control is raised. If the mouse moves but stays within the same item, the DragOver event is raised.
If the value of DragAction is Drop, the drop effect value is returned to the source, so the source application can perform the appropriate operation on the source data; for example, cut the data if the operation was a move. If the value of DragAction is Cancel, the DragLeave event is raised.
private void ToolStripItem1_QueryContinueDrag(Object sender, QueryContinueDragEventArgs e) { System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder(); messageBoxCS.AppendFormat("{0} = {1}", "KeyState", e.KeyState ); messageBoxCS.AppendLine(); messageBoxCS.AppendFormat("{0} = {1}", "EscapePressed", e.EscapePressed ); messageBoxCS.AppendLine(); messageBoxCS.AppendFormat("{0} = {1}", "Action", e.Action ); messageBoxCS.AppendLine(); MessageBox.Show(messageBoxCS.ToString(), "QueryContinueDrag Event" ); }