Problem definition :A form shall have a minimum size .When the user changes the width of the form ,the height must also change by the same amount .Similarly when the height of the form changes the width must change by the same amount . The implementation seems simple as shown in the below piece of code ,but this results in lot of fluckering and inconsistency in height and width chnage .
protected override void OnResize(EventArgs e) { if (!this.handleResize) return;
this.handleResize = false;
int dx = this.Width - this.prevSize.Width;
int dy = this.Height - this.prevSize.Height;
if (Math.Abs(dx) > Math.Abs(dy)) { this.Size = new Size(this.Width, this.Height + dx); } else { this.Size = new Size(this.Width + dy, this.Height); } this.prevSize = this.Size;
this.handleResize = true;
base.OnResize (e); }
Regards , Saanya
Problem definition :A form shall have a minimum size .When the user changes the width of the form ,the height must also change by the same amount .Similarly when the height of the form changes the width must change by the same amount . The implementation seems simple as shown in the below piece of code ,but this results in lot of fluckering and inconsistency in height and width chnage .
Joined: 09 Aug 2005 Country: Netherlands Posts: 24
Posted: 11 Jan 2006 12:25:58
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Problem definition :A form shall have a minimum size .When the user changes the width of the form ,the height must also change by the same amount .Similarly when the height of the form changes the width must change by the same amount . The implementation seems simple as shown in the below piece of code ,but this results in lot of fluckering and inconsistency in height and width chnage .
Sounds like a buffering thing. I dont know how .NET policy is regarding to double buffering, but it might be something worth looking into.
Mark
-- DNZone.com
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Problem definition :A form shall have a minimum size .When the user changes the width of the form ,the height must also change by the same amount .Similarly when the height of the form changes the width must change by the same amount . The implementation seems simple as shown in the below piece of code ,but this results in lot of fluckering and inconsistency in height and width chnage .
When a graph is drawn, the focus is kept on the actual underlying competing figures that constitute the graph. Sometimes it is difficult to make assumptions just by looking at these graphs. When looking at a geographical map of data you immediately see exactly where things are happening. This article presents a .NET geographical mapping solution that will illustrate a fairly simple way of implementing these maps.
Have you, as a web developer or designer ever been on sites where the site seems more of a puzzle then a tool to find the information you where looking for? Or are you looking to improve your web design skills? Then read on!
Design & Accessibility
This e-Book will teach you how to become a truly professional developer or designer. By taking usability and accessibility issues in account when designing your websites or applications you can make the difference and avoid a lot of (user) frustration.
Inside ASP.NET is a comprehensive guide to ASP.NET development using Microsoft's .NET development framework. This book presents information on the .NET framework that is of specific interest to Internet and intranet developers, and is split into the following sections: Introducing ASP.NET, Core ASP.NET, ASP.NET and Data Access, Advanced Technologies, Advanced Web Forms, and Putting It All Together
Each chapter tackles a specific area of ASP.NET development, first by giving a detailed overview, then presenting a series of code examples and walk-throughs that illustrate various applications of ASP.NET