public bool SetPosition(HwndZOrder order, int x, int y, int width, int height, WindowPositionFlags flags) { return(User32Helpers.SetWindowPos(this.Handle, order, x, y, width, height, flags)); }
void UpdateBar( ) { User32Helpers.SetWindowPos( Handle , HwndZOrder.HWND_TOPMOST , 0 , BarY , ScreenGeom.Width , BarHeight , WindowPositionFlags.SWP_SHOWWINDOW | WindowPositionFlags.SWP_NOACTIVATE | WindowPositionFlags.SWP_NOSENDCHANGING ); }