Skip to main content

QRCode

Version: 1.0

QRCode

QRCode​

Represents QR code barcode control.

public class QRCode : Control, IBindableComponent, IComponent, IDisposable, IDropTarget, ISynchronizeInvoke, IWin32Window
Public Class QRCode
Inherits Control
Implements IBindableComponent, IComponent, IDisposable, IDropTarget, ISynchronizeInvoke, IWin32Window

Inheritance: Object → MarshalByRefObject → Component → Control → QRCode

Implements: IBindableComponent, IComponent, IDisposable, IDropTarget, ISynchronizeInvoke, IWin32Window

Licensing​

This class is a DynamicBarcode Creator feature. The following license is required for non-evaluation usage:

  • DynamicBarcode Creator for .NET

Constructors​

QRCode()​

Creates new instance of the QR code.

public QRCode()
Public Sub New ()

Properties​

AccessibilityObject​

Gets the AccessibleObject assigned to the control. (Inherited from Control)

public AccessibleObject AccessibilityObject { get; }
Public Property AccessibilityObject As AccessibleObject

Property Value​

AccessibleObject

AccessibleDefaultActionDescription​

Gets or sets the default action description of the control for use by accessibility client applications. (Inherited from Control)

public string AccessibleDefaultActionDescription { get; set; }
Public Property AccessibleDefaultActionDescription As String

Property Value​

String

AccessibleDescription​

Gets or sets the description of the control used by accessibility client applications. (Inherited from Control)

public string AccessibleDescription { get; set; }
Public Property AccessibleDescription As String

Property Value​

String

AccessibleName​

Gets or sets the name of the control used by accessibility client applications. (Inherited from Control)

public string AccessibleName { get; set; }
Public Property AccessibleName As String

Property Value​

String

AccessibleRole​

Gets or sets the accessible role of the control (Inherited from Control)

public AccessibleRole AccessibleRole { get; set; }
Public Property AccessibleRole As AccessibleRole

Property Value​

AccessibleRole

Exceptions​

The value assigned is not one of the AccessibleRole values.

Anchor​

Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Inherited from Control)

public AnchorStyles Anchor { get; set; }
Public Property Anchor As AnchorStyles

Property Value​

AnchorStyles

AutoScrollOffset​

Gets or sets where this control is scrolled to in ScrollControlIntoView(System.Windows.Forms.Control) . (Inherited from Control)

public Point AutoScrollOffset { get; set; }
Public Property AutoScrollOffset As Point

Property Value​

Point

AutoSizeSymbol​

Gets or sets a boolean to auto resize the barcode.

public bool AutoSizeSymbol { get; set; }
Public Property AutoSizeSymbol As Boolean

Property Value​

Boolean

Remarks​

When set to true, it will auto size the barcode to the maximum possible size in order to fit within the control size.

BackColor​

Gets or sets the background color for the barcode.

public Color BackColor { get; set; }
Public Property BackColor As Color

Property Value​

Color

BarcodeMargin​

Gets or sets the margin of the bars of the barcode.

public Margin BarcodeMargin { get; set; }
Public Property BarcodeMargin As Margin

Property Value​

Margin

BarColor​

Gets or sets the color of the bars of the barcode.

public Color BarColor { get; set; }
Public Property BarColor As Color

Property Value​

Color

BindingContext​

Gets or sets the BindingContext for the control. (Inherited from Control)

public BindingContext BindingContext { get; set; }
Public Property BindingContext As BindingContext

Property Value​

BindingContext

Bottom​

Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. (Inherited from Control)

public int Bottom { get; }
Public Property Bottom As Int32

Property Value​

Int32

Bounds​

Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Inherited from Control)

public Rectangle Bounds { get; set; }
Public Property Bounds As Rectangle

Property Value​

Rectangle

CanFocus​

Gets a value indicating whether the control can receive focus. (Inherited from Control)

public bool CanFocus { get; }
Public Property CanFocus As Boolean

Property Value​

Boolean

CanSelect​

Gets a value indicating whether the control can be selected. (Inherited from Control)

public bool CanSelect { get; }
Public Property CanSelect As Boolean

Property Value​

Boolean

Capture​

Gets or sets a value indicating whether the control has captured the mouse. (Inherited from Control)

public bool Capture { get; set; }
Public Property Capture As Boolean

Property Value​

Boolean

CausesValidation​

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. (Inherited from Control)

public bool CausesValidation { get; set; }
Public Property CausesValidation As Boolean

Property Value​

Boolean

ClientRectangle​

Gets the rectangle that represents the client area of the control. (Inherited from Control)

public Rectangle ClientRectangle { get; }
Public Property ClientRectangle As Rectangle

Property Value​

Rectangle

ClientSize​

Gets or sets the height and width of the client area of the control. (Inherited from Control)

public Size ClientSize { get; set; }
Public Property ClientSize As Size

Property Value​

Size

CompanyName​

Gets the name of the company or creator of the application containing the control. (Inherited from Control)

public string CompanyName { get; }
Public Property CompanyName As String

Property Value​

String

Container​

Gets the IContainer that contains the Component . (Inherited from Component)

public IContainer Container { get; }
Public Property Container As IContainer

Property Value​

IContainer

ContainsFocus​

Gets a value indicating whether the control, or one of its child controls, currently has the input focus. (Inherited from Control)

public bool ContainsFocus { get; }
Public Property ContainsFocus As Boolean

Property Value​

Boolean

ContextMenu​

Gets or sets the shortcut menu associated with the control. (Inherited from Control)

public ContextMenu ContextMenu { get; set; }
Public Property ContextMenu As ContextMenu

Property Value​

ContextMenu

Controls​

Gets the collection of controls contained within the control. (Inherited from Control)

public ControlCollection Controls { get; }
Public Property Controls As ControlCollection

Property Value​

ControlCollection

Created​

Gets a value indicating whether the control has been created. (Inherited from Control)

public bool Created { get; }
Public Property Created As Boolean

Property Value​

Boolean

DataBindings​

Gets the data bindings for the control. (Inherited from Control)

public ControlBindingsCollection DataBindings { get; }
Public Property DataBindings As ControlBindingsCollection

Property Value​

ControlBindingsCollection

DeviceDpi​

Gets the DPI value for the display device where the control is currently being displayed. (Inherited from Control)

public int DeviceDpi { get; }
Public Property DeviceDpi As Int32

Property Value​

Int32

DisplayRectangle​

Gets the rectangle that represents the display area of the control. (Inherited from Control)

public Rectangle DisplayRectangle { get; }
Public Property DisplayRectangle As Rectangle

Property Value​

Rectangle

Disposing​

Gets a value indicating whether the base Control class is in the process of disposing. (Inherited from Control)

public bool Disposing { get; }
Public Property Disposing As Boolean

Property Value​

Boolean

Dock​

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Inherited from Control)

public DockStyle Dock { get; set; }
Public Property Dock As DockStyle

Property Value​

DockStyle

Exceptions​

The value assigned is not one of the DockStyle values.

Enabled​

Gets or sets a value indicating whether the control can respond to user interaction. (Inherited from Control)

public bool Enabled { get; set; }
Public Property Enabled As Boolean

Property Value​

Boolean

Focused​

Gets a value indicating whether the control has input focus. (Inherited from Control)

public bool Focused { get; }
Public Property Focused As Boolean

Property Value​

Boolean

Font​

Gets or sets the font of the text displayed by the control. (Inherited from Control)

public Font Font { get; set; }
Public Property Font As Font

Property Value​

Font

Handle​

Gets the window handle that the control is bound to. (Inherited from Control)

public IntPtr Handle { get; }
Public Property Handle As IntPtr

Property Value​

IntPtr

HasChildren​

Gets a value indicating whether the control contains one or more child controls. (Inherited from Control)

public bool HasChildren { get; }
Public Property HasChildren As Boolean

Property Value​

Boolean

Height​

Gets or sets the height of the control. (Inherited from Control)

public int Height { get; set; }
Public Property Height As Int32

Property Value​

Int32

ImeMode​

Gets or sets the Input Method Editor (IME) mode of the control. (Inherited from Control)

public ImeMode ImeMode { get; set; }
Public Property ImeMode As ImeMode

Property Value​

ImeMode

Exceptions​

The assigned value is not one of the ImeMode enumeration values.

InvokeRequired​

Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. (Inherited from Control)

public bool InvokeRequired { get; }
Public Property InvokeRequired As Boolean

Property Value​

Boolean

IsAccessible​

Gets or sets a value indicating whether the control is visible to accessibility applications. (Inherited from Control)

public bool IsAccessible { get; set; }
Public Property IsAccessible As Boolean

Property Value​

Boolean

IsDisposed​

Gets a value indicating whether the control has been disposed of. (Inherited from Control)

public bool IsDisposed { get; }
Public Property IsDisposed As Boolean

Property Value​

Boolean

IsHandleCreated​

Gets a value indicating whether the control has a handle associated with it. (Inherited from Control)

public bool IsHandleCreated { get; }
Public Property IsHandleCreated As Boolean

Property Value​

Boolean

IsMirrored​

Gets a value indicating whether the control is mirrored. (Inherited from Control)

public bool IsMirrored { get; }
Public Property IsMirrored As Boolean

Property Value​

Boolean

LayoutEngine​

Gets a cached instance of the control's layout engine. (Inherited from Control)

public LayoutEngine LayoutEngine { get; }
Public Property LayoutEngine As LayoutEngine

Property Value​

LayoutEngine

Left​

Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. (Inherited from Control)

public int Left { get; set; }
Public Property Left As Int32

Property Value​

Int32

Location​

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from Control)

public Point Location { get; set; }
Public Property Location As Point

Property Value​

Point

Margin​

Gets or sets the space between controls. (Inherited from Control)

public Padding Margin { get; set; }
Public Property Margin As Padding

Property Value​

Padding

MaximumSize​

Gets or sets the size that is the upper limit that GetPreferredSize(System.Drawing.Size) can specify. (Inherited from Control)

public Size MaximumSize { get; set; }
Public Property MaximumSize As Size

Property Value​

Size

MinimumSize​

Gets or sets the size that is the lower limit that GetPreferredSize(System.Drawing.Size) can specify. (Inherited from Control)

public Size MinimumSize { get; set; }
Public Property MinimumSize As Size

Property Value​

Size

Name​

Gets or sets the name of the control. (Inherited from Control)

public string Name { get; set; }
Public Property Name As String

Property Value​

String

Parent​

Gets or sets the parent container of the control. (Inherited from Control)

public Control Parent { get; set; }
Public Property Parent As Control

Property Value​

Control

PreferredSize​

Gets the size of a rectangular area into which the control can fit. (Inherited from Control)

public Size PreferredSize { get; }
Public Property PreferredSize As Size

Property Value​

Size

ProductName​

Gets the product name of the assembly containing the control. (Inherited from Control)

public string ProductName { get; }
Public Property ProductName As String

Property Value​

String

ProductVersion​

Gets the version of the assembly containing the control. (Inherited from Control)

public string ProductVersion { get; }
Public Property ProductVersion As String

Property Value​

String

QRCodeEncoding​

Gets or sets the QR code encoding to use. Only used by QR code that have a string value.

public Nullable&ltQRCodeEncoding> QRCodeEncoding { get; set; }
Public Property QRCodeEncoding As Nullable(Of QRCodeEncoding)

Property Value​

Nullable&ltQRCodeEncoding>

QRCodeErrorCorrectionLevel​

Gets or sets the error correction level to use when creating the barcode.

public QRCodeErrorCorrectionLevel QRCodeErrorCorrectionLevel { get; set; }
Public Property QRCodeErrorCorrectionLevel As QRCodeErrorCorrectionLevel

Property Value​

QRCodeErrorCorrectionLevel

QRCodeVersion​

Gets or sets the version to use when creating the barcode.

public QRCodeVersion QRCodeVersion { get; set; }
Public Property QRCodeVersion As QRCodeVersion

Property Value​

QRCodeVersion

RecreatingHandle​

Gets a value indicating whether the control is currently re-creating its handle. (Inherited from Control)

public bool RecreatingHandle { get; }
Public Property RecreatingHandle As Boolean

Property Value​

Boolean

Region​

Gets or sets the window region associated with the control. (Inherited from Control)

public Region Region { get; set; }
Public Property Region As Region

Property Value​

Region

Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. (Inherited from Control)

public int Right { get; }
Public Property Right As Int32

Property Value​

Int32

Site​

Gets or sets the site of the control. (Inherited from Control)

public ISite Site { get; set; }
Public Property Site As ISite

Property Value​

ISite

Size​

Gets or sets the height and width of the control. (Inherited from Control)

public Size Size { get; set; }
Public Property Size As Size

Property Value​

Size

TabIndex​

Gets or sets the tab order of the control within its container. (Inherited from Control)

public int TabIndex { get; set; }
Public Property TabIndex As Int32

Property Value​

Int32

TabStop​

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Inherited from Control)

public bool TabStop { get; set; }
Public Property TabStop As Boolean

Property Value​

Boolean

Tag​

Gets or sets the object that contains data about the control. (Inherited from Control)

public Object Tag { get; set; }
Public Property Tag As Object

Property Value​

Object

Text​

Gets or sets the value used to generate the barcode.

public string Text { get; set; }
Public Property Text As String

Property Value​

String

Top​

Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. (Inherited from Control)

public int Top { get; set; }
Public Property Top As Int32

Property Value​

Int32

TopLevelControl​

Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in. (Inherited from Control)

public Control TopLevelControl { get; }
Public Property TopLevelControl As Control

Property Value​

Control

UseWaitCursor​

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Inherited from Control)

public bool UseWaitCursor { get; set; }
Public Property UseWaitCursor As Boolean

Property Value​

Boolean

Visible​

Gets or sets a value indicating whether the control and all its child controls are displayed. (Inherited from Control)

public bool Visible { get; set; }
Public Property Visible As Boolean

Property Value​

Boolean

Width​

Gets or sets the width of the control. (Inherited from Control)

public int Width { get; set; }
Public Property Width As Int32

Property Value​

Int32

XDimension​

Gets or sets the minimum width of a narrow bar in the barcode in points.

public Nullable&ltfloat> XDimension { get; set; }
Public Property XDimension As Nullable(Of Single)

Property Value​

Nullable&ltfloat>

Methods​

BeginInvoke(Delegate)​

Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. (Inherited from Control)

public IAsyncResult BeginInvoke(Delegate method)
Function BeginInvoke(method As Delegate) As IAsyncResult

Parameters​

A delegate to a method that takes no parameters.

Returns​

An IAsyncResult that represents the result of the BeginInvoke(System.Delegate) operation.

Exceptions​

No appropriate window handle can be found.

BeginInvoke(Delegate, Object[])​

Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on. (Inherited from Control)

public IAsyncResult BeginInvoke(Delegate method, Object[] args)
Function BeginInvoke(method As Delegate, args As Object[]) As IAsyncResult

Parameters​

A delegate to a method that takes parameters of the same number and type that are contained in the parameter.

An array of objects to pass as arguments to the given method. This can be if no arguments are needed.

Returns​

An IAsyncResult that represents the result of the BeginInvoke(System.Delegate) operation.

Exceptions​

No appropriate window handle can be found.

BringToFront()​

Brings the control to the front of the z-order. (Inherited from Control)

public void BringToFront()
Sub BringToFront()

Contains(Control)​

Retrieves a value indicating whether the specified control is a child of the control. (Inherited from Control)

public bool Contains(Control ctl)
Function Contains(ctl As Control) As Boolean

Parameters​

The Control to evaluate.

Returns​

if the specified control is a child of the control; otherwise, .

CreateControl()​

Forces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from Control)

public void CreateControl()
Sub CreateControl()

CreateGraphics()​

Creates the Graphics for the control. (Inherited from Control)

public Graphics CreateGraphics()
Function CreateGraphics() As Graphics

Returns​

The Graphics for the control.

CreateObjRef(Type)​

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject)

public ObjRef CreateObjRef(Type requestedType)
Function CreateObjRef(requestedType As Type) As ObjRef

Parameters​

  • requestedType: Type

The Type of the object that the new ObjRef will reference.

Returns​

Information required to generate a proxy.

Exceptions​

This instance is not a valid remoting object.

The immediate caller does not have infrastructure permission.

Dispose()​

Releases all resources used by the Component . (Inherited from Component)

public void Dispose()
Sub Dispose()

DoDragDrop(Object, DragDropEffects)​

Begins a drag-and-drop operation. (Inherited from Control)

public DragDropEffects DoDragDrop(Object data, DragDropEffects allowedEffects)
Function DoDragDrop(data As Object, allowedEffects As DragDropEffects) As DragDropEffects

Parameters​

The data to drag.

One of the DragDropEffects values.

Returns​

A value from the DragDropEffects enumeration that represents the final effect that was performed during the drag-and-drop operation.

DrawToBitmap(Bitmap, Rectangle)​

Supports rendering to the specified bitmap. (Inherited from Control)

public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
Sub DrawToBitmap(bitmap As Bitmap, targetBounds As Rectangle)

Parameters​

The bitmap to be drawn to.

The bounds within which the control is rendered.

EndInvoke(IAsyncResult)​

Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Inherited from Control)

public Object EndInvoke(IAsyncResult asyncResult)
Function EndInvoke(asyncResult As IAsyncResult) As Object

Parameters​

The IAsyncResult that represents a specific invoke asynchronous operation, returned when calling BeginInvoke(System.Delegate) .

Returns​

The Object generated by the asynchronous operation.

Exceptions​

The parameter value is .

The object was not created by a preceding call of the BeginInvoke(System.Delegate) method from the same control.

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

FindForm()​

Retrieves the form that the control is on. (Inherited from Control)

public Form FindForm()
Function FindForm() As Form

Returns​

The Form that the control is on.

Focus()​

Sets input focus to the control. (Inherited from Control)

public bool Focus()
Function Focus() As Boolean

Returns​

if the input focus request was successful; otherwise, .

GetBarcode()​

Creates new QR barcode instance.

public Barcode GetBarcode()
Function GetBarcode() As Barcode

Returns​

GetChildAtPoint(Point)​

Retrieves the child control that is located at the specified coordinates. (Inherited from Control)

public Control GetChildAtPoint(Point pt)
Function GetChildAtPoint(pt As Point) As Control

Parameters​

A Point that contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the control's client area.

Returns​

A Control that represents the control that is located at the specified point.

GetChildAtPoint(Point, GetChildAtPointSkip)​

Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. (Inherited from Control)

public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue)
Function GetChildAtPoint(pt As Point, skipValue As GetChildAtPointSkip) As Control

Parameters​

A Point that contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the control's client area.

One of the values of GetChildAtPointSkip , determining whether to ignore child controls of a certain type.

Returns​

The child Control at the specified coordinates.

GetContainerControl()​

Returns the next ContainerControl up the control's chain of parent controls. (Inherited from Control)

public IContainerControl GetContainerControl()
Function GetContainerControl() As IContainerControl

Returns​

An IContainerControl , that represents the parent of the Control .

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetLifetimeService()​

Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject)

public Object GetLifetimeService()
Function GetLifetimeService() As Object

Returns​

An object of type ILease used to control the lifetime policy for this instance.

Exceptions​

The immediate caller does not have infrastructure permission.

GetNextControl(Control, Boolean)​

Retrieves the next control forward or back in the tab order of child controls. (Inherited from Control)

public Control GetNextControl(Control ctl, bool forward)
Function GetNextControl(ctl As Control, forward As Boolean) As Control

Parameters​

The Control to start the search with.

to search forward in the tab order; to search backward.

Returns​

The next Control in the tab order.

GetPreferredSize(Size)​

Retrieves the size of a rectangular area into which a control can be fitted. (Inherited from Control)

public Size GetPreferredSize(Size proposedSize)
Function GetPreferredSize(proposedSize As Size) As Size

Parameters​

  • proposedSize: Size

The custom-sized area for a control.

Returns​

An ordered pair of type Size representing the width and height of a rectangle.

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Hide()​

Conceals the control from the user. (Inherited from Control)

public void Hide()
Sub Hide()

InitializeLifetimeService()​

Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject)

public Object InitializeLifetimeService()
Function InitializeLifetimeService() As Object

Returns​

An object of type ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the LeaseManagerPollTime property.

Exceptions​

The immediate caller does not have infrastructure permission.

Invalidate()​

Invalidates the entire surface of the control and causes the control to be redrawn. (Inherited from Control)

public void Invalidate()
Sub Invalidate()

Invalidate(Boolean)​

Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control)

public void Invalidate(bool invalidateChildren)
Sub Invalidate(invalidateChildren As Boolean)

Parameters​

to invalidate the control's child controls; otherwise, .

Invalidate(Rectangle)​

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from Control)

public void Invalidate(Rectangle rc)
Sub Invalidate(rc As Rectangle)

Parameters​

A Rectangle that represents the region to invalidate.

Invalidate(Rectangle, Boolean)​

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control)

public void Invalidate(Rectangle rc, bool invalidateChildren)
Sub Invalidate(rc As Rectangle, invalidateChildren As Boolean)

Parameters​

A Rectangle that represents the region to invalidate.

to invalidate the control's child controls; otherwise, .

Invalidate(Region)​

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from Control)

public void Invalidate(Region region)
Sub Invalidate(region As Region)

Parameters​

The Region to invalidate.

Invalidate(Region, Boolean)​

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control)

public void Invalidate(Region region, bool invalidateChildren)
Sub Invalidate(region As Region, invalidateChildren As Boolean)

Parameters​

The Region to invalidate.

to invalidate the control's child controls; otherwise, .

Invoke(Delegate)​

Executes the specified delegate on the thread that owns the control's underlying window handle. (Inherited from Control)

public Object Invoke(Delegate method)
Function Invoke(method As Delegate) As Object

Parameters​

A delegate that contains a method to be called in the control's thread context.

Returns​

The return value from the delegate being invoked, or if the delegate has no return value.

Invoke(Delegate, Object[])​

Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments. (Inherited from Control)

public Object Invoke(Delegate method, Object[] args)
Function Invoke(method As Delegate, args As Object[]) As Object

Parameters​

A delegate to a method that takes parameters of the same number and type that are contained in the parameter.

An array of objects to pass as arguments to the specified method. This parameter can be if the method takes no arguments.

Returns​

An Object that contains the return value from the delegate being invoked, or if the delegate has no return value.

LogicalToDeviceUnits(Int32)​

Converts a Logical DPI value to its equivalent DeviceUnit DPI value. (Inherited from Control)

public int LogicalToDeviceUnits(int value)
Function LogicalToDeviceUnits(value As Integer) As Integer

Parameters​

The Logical value to convert.

Returns​

The resulting DeviceUnit value.

LogicalToDeviceUnits(Size)​

Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height. (Inherited from Control)

public Size LogicalToDeviceUnits(Size value)
Function LogicalToDeviceUnits(value As Size) As Size

Parameters​

The size to be scaled.

Returns​

The scaled size.

PerformLayout()​

Forces the control to apply layout logic to all its child controls. (Inherited from Control)

public void PerformLayout()
Sub PerformLayout()

PerformLayout(Control, String)​

Forces the control to apply layout logic to all its child controls. (Inherited from Control)

public void PerformLayout(Control affectedControl, string affectedProperty)
Sub PerformLayout(affectedControl As Control, affectedProperty As String)

Parameters​

A Control that represents the most recently changed control.

The name of the most recently changed property on the control.

PointToClient(Point)​

Computes the location of the specified screen point into client coordinates. (Inherited from Control)

public Point PointToClient(Point p)
Function PointToClient(p As Point) As Point

Parameters​

The screen coordinate Point to convert.

Returns​

A Point that represents the converted Point , , in client coordinates.

PointToScreen(Point)​

Computes the location of the specified client point into screen coordinates. (Inherited from Control)

public Point PointToScreen(Point p)
Function PointToScreen(p As Point) As Point

Parameters​

The client coordinate Point to convert.

Returns​

A Point that represents the converted Point , , in screen coordinates.

PreProcessControlMessage(Message&)​

Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control)

public PreProcessControlState PreProcessControlMessage(Message& msg)
Function PreProcessControlMessage(msg As Message&) As PreProcessControlState

Parameters​

A Message that represents the message to process.

Returns​

One of the PreProcessControlState values, depending on whether PreProcessMessage(System.Windows.Forms.Message@) is or and whether IsInputKey(System.Windows.Forms.Keys) or IsInputChar(System.Char) are or .

PreProcessMessage(Message&)​

Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control)

public bool PreProcessMessage(Message& msg)
Function PreProcessMessage(msg As Message&) As Boolean

Parameters​

A Message , passed by reference, that represents the message to process. The possible values are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR.

Returns​

if the message was processed by the control; otherwise, .

RectangleToClient(Rectangle)​

Computes the size and location of the specified screen rectangle in client coordinates. (Inherited from Control)

public Rectangle RectangleToClient(Rectangle r)
Function RectangleToClient(r As Rectangle) As Rectangle

Parameters​

The screen coordinate Rectangle to convert.

Returns​

A Rectangle that represents the converted Rectangle , , in client coordinates.

RectangleToScreen(Rectangle)​

Computes the size and location of the specified client rectangle in screen coordinates. (Inherited from Control)

public Rectangle RectangleToScreen(Rectangle r)
Function RectangleToScreen(r As Rectangle) As Rectangle

Parameters​

The client coordinate Rectangle to convert.

Returns​

A Rectangle that represents the converted Rectangle , , in screen coordinates.

Refresh()​

Forces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from Control)

public void Refresh()
Sub Refresh()

ResetText()​

Resets the Text property to its default value ( Empty ). (Inherited from Control)

public void ResetText()
Sub ResetText()

ResumeLayout()​

Resumes usual layout logic. (Inherited from Control)

public void ResumeLayout()
Sub ResumeLayout()

ResumeLayout(Boolean)​

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. (Inherited from Control)

public void ResumeLayout(bool performLayout)
Sub ResumeLayout(performLayout As Boolean)

Parameters​

to execute pending layout requests; otherwise, .

Scale(SizeF)​

Scales the control and all child controls by the specified scaling factor. (Inherited from Control)

public void Scale(SizeF factor)
Sub Scale(factor As SizeF)

Parameters​

A SizeF containing the horizontal and vertical scaling factors.

ScaleBitmapLogicalToDevice(Bitmap&)​

Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs. (Inherited from Control)

public void ScaleBitmapLogicalToDevice(Bitmap& logicalBitmap)
Sub ScaleBitmapLogicalToDevice(logicalBitmap As Bitmap&)

Parameters​

The bitmap to scale.

Select()​

Activates the control. (Inherited from Control)

public void Select()
Sub Select()

SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)​

Activates the next control. (Inherited from Control)

public bool SelectNextControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap)
Function SelectNextControl(ctl As Control, forward As Boolean, tabStopOnly As Boolean, nested As Boolean, wrap As Boolean) As Boolean

Parameters​

The Control at which to start the search.

to move forward in the tab order; to move backward in the tab order.

to ignore the controls with the TabStop property set to ; otherwise, .

to include nested (children of child controls) child controls; otherwise, .

to continue searching from the first control in the tab order after the last control has been reached; otherwise, .

Returns​

if a control was activated; otherwise, .

SendToBack()​

Sends the control to the back of the z-order. (Inherited from Control)

public void SendToBack()
Sub SendToBack()

SetBounds(Int32, Int32, Int32, Int32)​

Sets the bounds of the control to the specified location and size. (Inherited from Control)

public void SetBounds(int x, int y, int width, int height)
Sub SetBounds(x As Integer, y As Integer, width As Integer, height As Integer)

Parameters​

The new Left property value of the control.

The new Top property value of the control.

The new Width property value of the control.

The new Height property value of the control.

SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)​

Sets the specified bounds of the control to the specified location and size. (Inherited from Control)

public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified)
Sub SetBounds(x As Integer, y As Integer, width As Integer, height As Integer, specified As BoundsSpecified)

Parameters​

The new Left property value of the control.

The new Top property value of the control.

The new Width property value of the control.

The new Height property value of the control.

A bitwise combination of the BoundsSpecified values. For any parameter not specified, the current value will be used.

Show()​

Displays the control to the user. (Inherited from Control)

public void Show()
Sub Show()

SuspendLayout()​

Temporarily suspends the layout logic for the control. (Inherited from Control)

public void SuspendLayout()
Sub SuspendLayout()

ToString()​

Returns a String containing the name of the Component , if any. This method should not be overridden. (Inherited from Component)

public string ToString()
Function ToString() As String

Returns​

A String containing the name of the Component , if any, or if the Component is unnamed.

Update()​

Causes the control to redraw the invalidated regions within its client area. (Inherited from Control)

public void Update()
Sub Update()

Events​

BackColorChanged​

Occurs when the value of the BackColor property changes. (Inherited from Control)

public event EventHandler QRCode.BackColorChanged;
Public Event QRCode.BackColorChanged As EventHandler

Event Handler​

EventHandler

BarcodeExceptionRaised​

Occurs when there is an error in rendering the barcode.

public event BarcodeExceptionRaisedEventHandler QRCode.BarcodeExceptionRaised;
Public Event QRCode.BarcodeExceptionRaised As BarcodeExceptionRaisedEventHandler

Event Handler​

BarcodeExceptionRaisedEventHandler

BindingContextChanged​

Occurs when the value of the BindingContext property changes. (Inherited from Control)

public event EventHandler QRCode.BindingContextChanged;
Public Event QRCode.BindingContextChanged As EventHandler

Event Handler​

EventHandler

CausesValidationChanged​

Occurs when the value of the CausesValidation property changes. (Inherited from Control)

public event EventHandler QRCode.CausesValidationChanged;
Public Event QRCode.CausesValidationChanged As EventHandler

Event Handler​

EventHandler

ChangeUICues​

Occurs when the focus or keyboard user interface (UI) cues change. (Inherited from Control)

public event UICuesEventHandler QRCode.ChangeUICues;
Public Event QRCode.ChangeUICues As UICuesEventHandler

Event Handler​

UICuesEventHandler

Click​

Occurs when the control is clicked. (Inherited from Control)

public event EventHandler QRCode.Click;
Public Event QRCode.Click As EventHandler

Event Handler​

EventHandler

ClientSizeChanged​

Occurs when the value of the ClientSize property changes. (Inherited from Control)

public event EventHandler QRCode.ClientSizeChanged;
Public Event QRCode.ClientSizeChanged As EventHandler

Event Handler​

EventHandler

ContextMenuChanged​

Occurs when the value of the ContextMenu property changes. (Inherited from Control)

public event EventHandler QRCode.ContextMenuChanged;
Public Event QRCode.ContextMenuChanged As EventHandler

Event Handler​

EventHandler

ControlAdded​

Occurs when a new control is added to the ControlCollection . (Inherited from Control)

public event ControlEventHandler QRCode.ControlAdded;
Public Event QRCode.ControlAdded As ControlEventHandler

Event Handler​

ControlEventHandler

ControlRemoved​

Occurs when a control is removed from the ControlCollection . (Inherited from Control)

public event ControlEventHandler QRCode.ControlRemoved;
Public Event QRCode.ControlRemoved As ControlEventHandler

Event Handler​

ControlEventHandler

Disposed​

Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component)

public event EventHandler QRCode.Disposed;
Public Event QRCode.Disposed As EventHandler

Event Handler​

EventHandler

DockChanged​

Occurs when the value of the Dock property changes. (Inherited from Control)

public event EventHandler QRCode.DockChanged;
Public Event QRCode.DockChanged As EventHandler

Event Handler​

EventHandler

DoubleClick​

Occurs when the control is double-clicked. (Inherited from Control)

public event EventHandler QRCode.DoubleClick;
Public Event QRCode.DoubleClick As EventHandler

Event Handler​

EventHandler

DpiChangedAfterParent​

Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. (Inherited from Control)

public event EventHandler QRCode.DpiChangedAfterParent;
Public Event QRCode.DpiChangedAfterParent As EventHandler

Event Handler​

EventHandler

DpiChangedBeforeParent​

Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred. (Inherited from Control)

public event EventHandler QRCode.DpiChangedBeforeParent;
Public Event QRCode.DpiChangedBeforeParent As EventHandler

Event Handler​

EventHandler

DragDrop​

Occurs when a drag-and-drop operation is completed. (Inherited from Control)

public event DragEventHandler QRCode.DragDrop;
Public Event QRCode.DragDrop As DragEventHandler

Event Handler​

DragEventHandler

DragEnter​

Occurs when an object is dragged into the control's bounds. (Inherited from Control)

public event DragEventHandler QRCode.DragEnter;
Public Event QRCode.DragEnter As DragEventHandler

Event Handler​

DragEventHandler

DragLeave​

Occurs when an object is dragged out of the control's bounds. (Inherited from Control)

public event EventHandler QRCode.DragLeave;
Public Event QRCode.DragLeave As EventHandler

Event Handler​

EventHandler

DragOver​

Occurs when an object is dragged over the control's bounds. (Inherited from Control)

public event DragEventHandler QRCode.DragOver;
Public Event QRCode.DragOver As DragEventHandler

Event Handler​

DragEventHandler

EnabledChanged​

Occurs when the Enabled property value has changed. (Inherited from Control)

public event EventHandler QRCode.EnabledChanged;
Public Event QRCode.EnabledChanged As EventHandler

Event Handler​

EventHandler

Enter​

Occurs when the control is entered. (Inherited from Control)

public event EventHandler QRCode.Enter;
Public Event QRCode.Enter As EventHandler

Event Handler​

EventHandler

FontChanged​

Occurs when the Font property value changes. (Inherited from Control)

public event EventHandler QRCode.FontChanged;
Public Event QRCode.FontChanged As EventHandler

Event Handler​

EventHandler

GiveFeedback​

Occurs during a drag operation. (Inherited from Control)

public event GiveFeedbackEventHandler QRCode.GiveFeedback;
Public Event QRCode.GiveFeedback As GiveFeedbackEventHandler

Event Handler​

GiveFeedbackEventHandler

GotFocus​

Occurs when the control receives focus. (Inherited from Control)

public event EventHandler QRCode.GotFocus;
Public Event QRCode.GotFocus As EventHandler

Event Handler​

EventHandler

HandleCreated​

Occurs when a handle is created for the control. (Inherited from Control)

public event EventHandler QRCode.HandleCreated;
Public Event QRCode.HandleCreated As EventHandler

Event Handler​

EventHandler

HandleDestroyed​

Occurs when the control's handle is in the process of being destroyed. (Inherited from Control)

public event EventHandler QRCode.HandleDestroyed;
Public Event QRCode.HandleDestroyed As EventHandler

Event Handler​

EventHandler

HelpRequested​

Occurs when the user requests help for a control. (Inherited from Control)

public event HelpEventHandler QRCode.HelpRequested;
Public Event QRCode.HelpRequested As HelpEventHandler

Event Handler​

HelpEventHandler

ImeModeChanged​

Occurs when the ImeMode property has changed. (Inherited from Control)

public event EventHandler QRCode.ImeModeChanged;
Public Event QRCode.ImeModeChanged As EventHandler

Event Handler​

EventHandler

Invalidated​

Occurs when a control's display requires redrawing. (Inherited from Control)

public event InvalidateEventHandler QRCode.Invalidated;
Public Event QRCode.Invalidated As InvalidateEventHandler

Event Handler​

InvalidateEventHandler

KeyDown​

Occurs when a key is pressed while the control has focus. (Inherited from Control)

public event KeyEventHandler QRCode.KeyDown;
Public Event QRCode.KeyDown As KeyEventHandler

Event Handler​

KeyEventHandler

KeyPress​

Occurs when a character. space or backspace key is pressed while the control has focus. (Inherited from Control)

public event KeyPressEventHandler QRCode.KeyPress;
Public Event QRCode.KeyPress As KeyPressEventHandler

Event Handler​

KeyPressEventHandler

KeyUp​

Occurs when a key is released while the control has focus. (Inherited from Control)

public event KeyEventHandler QRCode.KeyUp;
Public Event QRCode.KeyUp As KeyEventHandler

Event Handler​

KeyEventHandler

Layout​

Occurs when a control should reposition its child controls. (Inherited from Control)

public event LayoutEventHandler QRCode.Layout;
Public Event QRCode.Layout As LayoutEventHandler

Event Handler​

LayoutEventHandler

Leave​

Occurs when the input focus leaves the control. (Inherited from Control)

public event EventHandler QRCode.Leave;
Public Event QRCode.Leave As EventHandler

Event Handler​

EventHandler

LocationChanged​

Occurs when the Location property value has changed. (Inherited from Control)

public event EventHandler QRCode.LocationChanged;
Public Event QRCode.LocationChanged As EventHandler

Event Handler​

EventHandler

LostFocus​

Occurs when the control loses focus. (Inherited from Control)

public event EventHandler QRCode.LostFocus;
Public Event QRCode.LostFocus As EventHandler

Event Handler​

EventHandler

MarginChanged​

Occurs when the control's margin changes. (Inherited from Control)

public event EventHandler QRCode.MarginChanged;
Public Event QRCode.MarginChanged As EventHandler

Event Handler​

EventHandler

MouseCaptureChanged​

Occurs when the control loses mouse capture. (Inherited from Control)

public event EventHandler QRCode.MouseCaptureChanged;
Public Event QRCode.MouseCaptureChanged As EventHandler

Event Handler​

EventHandler

MouseClick​

Occurs when the control is clicked by the mouse. (Inherited from Control)

public event MouseEventHandler QRCode.MouseClick;
Public Event QRCode.MouseClick As MouseEventHandler

Event Handler​

MouseEventHandler

MouseDoubleClick​

Occurs when the control is double clicked by the mouse. (Inherited from Control)

public event MouseEventHandler QRCode.MouseDoubleClick;
Public Event QRCode.MouseDoubleClick As MouseEventHandler

Event Handler​

MouseEventHandler

MouseDown​

Occurs when the mouse pointer is over the control and a mouse button is pressed. (Inherited from Control)

public event MouseEventHandler QRCode.MouseDown;
Public Event QRCode.MouseDown As MouseEventHandler

Event Handler​

MouseEventHandler

MouseEnter​

Occurs when the mouse pointer enters the control. (Inherited from Control)

public event EventHandler QRCode.MouseEnter;
Public Event QRCode.MouseEnter As EventHandler

Event Handler​

EventHandler

MouseHover​

Occurs when the mouse pointer rests on the control. (Inherited from Control)

public event EventHandler QRCode.MouseHover;
Public Event QRCode.MouseHover As EventHandler

Event Handler​

EventHandler

MouseLeave​

Occurs when the mouse pointer leaves the control. (Inherited from Control)

public event EventHandler QRCode.MouseLeave;
Public Event QRCode.MouseLeave As EventHandler

Event Handler​

EventHandler

MouseMove​

Occurs when the mouse pointer is moved over the control. (Inherited from Control)

public event MouseEventHandler QRCode.MouseMove;
Public Event QRCode.MouseMove As MouseEventHandler

Event Handler​

MouseEventHandler

MouseUp​

Occurs when the mouse pointer is over the control and a mouse button is released. (Inherited from Control)

public event MouseEventHandler QRCode.MouseUp;
Public Event QRCode.MouseUp As MouseEventHandler

Event Handler​

MouseEventHandler

MouseWheel​

Occurs when the mouse wheel moves while the control has focus. (Inherited from Control)

public event MouseEventHandler QRCode.MouseWheel;
Public Event QRCode.MouseWheel As MouseEventHandler

Event Handler​

MouseEventHandler

Move​

Occurs when the control is moved. (Inherited from Control)

public event EventHandler QRCode.Move;
Public Event QRCode.Move As EventHandler

Event Handler​

EventHandler

Paint​

Occurs when the control is redrawn. (Inherited from Control)

public event PaintEventHandler QRCode.Paint;
Public Event QRCode.Paint As PaintEventHandler

Event Handler​

PaintEventHandler

ParentChanged​

Occurs when the Parent property value changes. (Inherited from Control)

public event EventHandler QRCode.ParentChanged;
Public Event QRCode.ParentChanged As EventHandler

Event Handler​

EventHandler

PreviewKeyDown​

Occurs before the KeyDown event when a key is pressed while focus is on this control. (Inherited from Control)

public event PreviewKeyDownEventHandler QRCode.PreviewKeyDown;
Public Event QRCode.PreviewKeyDown As PreviewKeyDownEventHandler

Event Handler​

PreviewKeyDownEventHandler

QueryAccessibilityHelp​

Occurs when AccessibleObject is providing help to accessibility applications. (Inherited from Control)

public event QueryAccessibilityHelpEventHandler QRCode.QueryAccessibilityHelp;
Public Event QRCode.QueryAccessibilityHelp As QueryAccessibilityHelpEventHandler

Event Handler​

QueryAccessibilityHelpEventHandler

QueryContinueDrag​

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. (Inherited from Control)

public event QueryContinueDragEventHandler QRCode.QueryContinueDrag;
Public Event QRCode.QueryContinueDrag As QueryContinueDragEventHandler

Event Handler​

QueryContinueDragEventHandler

RegionChanged​

Occurs when the value of the Region property changes. (Inherited from Control)

public event EventHandler QRCode.RegionChanged;
Public Event QRCode.RegionChanged As EventHandler

Event Handler​

EventHandler

Resize​

Occurs when the control is resized. (Inherited from Control)

public event EventHandler QRCode.Resize;
Public Event QRCode.Resize As EventHandler

Event Handler​

EventHandler

SizeChanged​

Occurs when the Size property value changes. (Inherited from Control)

public event EventHandler QRCode.SizeChanged;
Public Event QRCode.SizeChanged As EventHandler

Event Handler​

EventHandler

StyleChanged​

Occurs when the control style changes. (Inherited from Control)

public event EventHandler QRCode.StyleChanged;
Public Event QRCode.StyleChanged As EventHandler

Event Handler​

EventHandler

SystemColorsChanged​

Occurs when the system colors change. (Inherited from Control)

public event EventHandler QRCode.SystemColorsChanged;
Public Event QRCode.SystemColorsChanged As EventHandler

Event Handler​

EventHandler

TabIndexChanged​

Occurs when the TabIndex property value changes. (Inherited from Control)

public event EventHandler QRCode.TabIndexChanged;
Public Event QRCode.TabIndexChanged As EventHandler

Event Handler​

EventHandler

TabStopChanged​

Occurs when the TabStop property value changes. (Inherited from Control)

public event EventHandler QRCode.TabStopChanged;
Public Event QRCode.TabStopChanged As EventHandler

Event Handler​

EventHandler

TextChanged​

Occurs when the Text property value changes. (Inherited from Control)

public event EventHandler QRCode.TextChanged;
Public Event QRCode.TextChanged As EventHandler

Event Handler​

EventHandler

Validated​

Occurs when the control is finished validating. (Inherited from Control)

public event EventHandler QRCode.Validated;
Public Event QRCode.Validated As EventHandler

Event Handler​

EventHandler

Validating​

Occurs when the control is validating. (Inherited from Control)

public event CancelEventHandler QRCode.Validating;
Public Event QRCode.Validating As CancelEventHandler

Event Handler​

CancelEventHandler

VisibleChanged​

Occurs when the Visible property value changes. (Inherited from Control)

public event EventHandler QRCode.VisibleChanged;
Public Event QRCode.VisibleChanged As EventHandler

Event Handler​

EventHandler

See Also​

ceTe.DynamicBarcode.Creator.Forms

Documentation version