FrameStyle Enumeration
Collapse the table of content
Expand the table of content

FrameStyle Enumeration


Specifies the frame style of the selected control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

type FrameStyle

Member nameDescription

A thin, dashed border.


A thick, solid border.

This enumeration is used by ControlPaint.DrawReversibleFrame.

DrawReversibleFrame is used when selecting objects or during drag-and-drop operations.

The following code example demonstrates using the FrameStyle enumeration. To run the example, paste the following code in a form called Form1 containing several controls.This example assumes the MouseDown, MouseMove, and MouseUp events are connected to the event-handler methods defined in the example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft