windows form sizing
-
hello, I am creating a windows form app using VS.Net and I am having a fundamental problem with window sizing. I would like to specify the exact size of each form programmatically. Despite my efforts, the forms seem to be resizing themselves sometime between when the constructor is run and the window is actually displayed. Does anybody know why or where in the code this is happening? Any insight would be much appreciated. Thanks!!! rc
-
hello, I am creating a windows form app using VS.Net and I am having a fundamental problem with window sizing. I would like to specify the exact size of each form programmatically. Despite my efforts, the forms seem to be resizing themselves sometime between when the constructor is run and the window is actually displayed. Does anybody know why or where in the code this is happening? Any insight would be much appreciated. Thanks!!! rc
have you tried putting the sizing in the forms constructor: this.Height = 600 ; this.Width = 800 ; Also, you could create an override for the forms OnResize event, like this; protected override void OnResize(EventArgs e) { base.OnResize (e); this.Width = 800 ; this.Height = 600 ; }