SendMessage for C#
How in C# to send messages to different windows as in c++(SendMessage) for example wm_size?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sateesh ArvetiRank #96 · 22.3K reputationPosted Mar 19, 2009, 11:42 PM EDT
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
static extern IntPtr SendMessage(IntPtr hWnd, Int32 Msg, IntPtr wParam, IntPtr lParam);
Vitaliy Kurlov7 reputationPosted Mar 20, 2009, 12:59 AM EDT