We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





99991 Jun 24,2011 02:20 PM UTC Jun 29,2011 06:58 AM UTC WinForms 1
Tags: HTMLUIControl
Randolph Webb
Asked On June 24, 2011 02:20 PM UTC

Hello Vallarasu

I have a question about the GDIUtils.DrawActiveRectangle
DOC DESCRIPTION: Draws an active rectangle.

- Is there a sample demonstrating usage
- What is the ActiveRectangle



Iniyen M A [Syncfusion]
Replied On June 29, 2011 06:58 AM UTC

Hi Randolph,

Thanks for your interest in Syncfusion products.

DrawActiveRectangle(Graphics graph, Rectangle rect, HightlightStyle state) Method will draw an active rectangle by blue color.

And the parameters "graph" resembles that the Graphic context where the rectangle must be drawn, "rect" Destination rectangle and "state" state of rectangle.Influence on colors by which rectangle will be drawn.

For more information i have included the code snippet as follows.

protected override void OnPaint(PaintEventArgs e)
Syncfusion.HTMLUI.Base.Utility.GDIUtils util = new Syncfusion.HTMLUI.Base.Utility.GDIUtils();
util.DrawActiveRectangle(e.Graphics, this.ClientRectangle, Syncfusion.HTMLUI.Base.Utility.HightlightStyle.Active);

By this code you will see a blue rectangle on the forms border

Please Let us know if you need furthre assistance.

Iniyen M.A.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon