Getting a window to redraw?

I have a separate app that I made a child window of my app via a SetParent(). This causes the other application to shrink and change its height and width(which I want). Strange thing is it makes my UI on it all wonky unless I either hold the mouse down on the title bar for a second, move the form around the screen with the mouse or resize it manually with the mouse.

Is there any way I can do this via code? I have tried using SendMessage with WM_paint and no luck.

by atreyal via /r/csharp

Leave a Reply