You can use SendMessage in C#, just not directly. You have to explicitely import it from user32.dll:

[DllImport("user32.dll",EntryPoint="SendMessage")]
public static extern int SendMessage(int hWnd, uint Msg, int wParam, int lParam);

Something like that should work. Then you can just use SendMessage like any other function.