In flash if a user hits Ctrl-C to copy when in a textfield flash does not have any way of detecting that event. Is there anyway to detect that in C#.
Because the flash control has focus. regular events that watch for keyup on the form dont work.
Code: Select all
[DllImport("user32.dll", EntryPoint = "IsChild", CallingConvention = CallingConvention.StdCall)]
public static extern int IsChild(IntPtr hWndParent, IntPtr hWnd);
public bool PreFilterMessage(ref Message m)
{
if (f_in_box__control1.Handle == m.HWnd || ( 0 != IsChild(f_in_box__control1.Handle, m.HWnd)))
if (0x101 /* WM_KEYUP */ == m.Msg && (int)'C' == m.WParam.ToInt32())
{
// Tada!
}
return false;
}
Users browsing this forum: No registered users and 21 guests