public void Update() { // Changed size? if (position.width != Width || position.height != Height) { // Cache the size: Width = position.width; Height = position.height; // Resize it: WebHelpers.Resize(WebView, Width, Height); } }