c# - WndProc method(windows messaging) not getting data while mimimize my application -
i overriding method wndproc in c# getting data ,sent vb.net application. receiving data problem when minimize application not able receive data, when again maximize application works fine. (issue threading pause/start)
i have searched solutions.some says set property 'showintaskbar=false'. says problem of handler handle not created.
but didn't find better solution.
do have idea short out problem.
following c# code :
[dllimport("user32.dll", charset = charset.auto)] static extern int sendmessage(intptr hwnd, int msg, int wparam, int lparam); protected override void wndproc(ref message m) { switch (m.msg) { case 0x401: if(x==0) buildstring.receivedstring(m.lparam); break; default: base.wndproc(ref m); break; } }
Comments
Post a Comment