Welcome to WindowsClient.net | Sign in | Join

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

Windows Forms FAQs

Browse by Tags

All Tags » Snaplines (RSS)


  • How do I add a snapline to my control?

    To provide a custom snapline for your control you need to override the SnapLines property on ControlDesigner. The CustomSnapline project shows how to add a text baseline snapline to a UserControl with a Label on it.
  • What is a snapline?

    A snapline is a dynamically generated UI layout guide line. Snaplines are generated during control move operations in the designer. The location of other controls on the design surface provide the lines.
  • How do I add custom snaplines?

    I am trying to add custom snaplines to a UserControl, but I can't find any examples or documentation covering snaplines. A simple example: I would like to create a compound UserControl, containing two controls: Label1 and TextBox1. Then the Parenting...