Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I prevent the Designer-Grid from being drawn on a container control during design-time?

Override the DrawGrid property in the custom designer:

public class CustomContainerDesigner : ParentControlDesigner 
{ 
  protected override bool DrawGrid 
  { 
    get { return disableDrawGrid ? false : base.DrawGrid; } 
  } 
}

Contributed from George Shepherd's Windows Forms FAQ



Page view counter