Table of Contents

Class RunTime

Namespace
RDCore.Forms.Model
Assembly
RDCore.Forms.dll

A running program's access to its forms' components, with the rules VB6 has for it.

public static class RunTime
Inheritance
RunTime
Inherited Members

Methods

Assign(ComponentInstance, PropertyDefinition, object?, bool)

A running program's assignment of value to property on component: refused with VB's error where VB6 refuses it, otherwise set.

public static void Assign(ComponentInstance component, PropertyDefinition property, object? value, bool onAVisualBasic6Form = true)

Parameters

component ComponentInstance

The component assigned.

property PropertyDefinition

The property assigned.

value object

The value, of the property's type; an extent is in pixels.

onAVisualBasic6Form bool

Whether the component is on a Visual Basic 6.0 form, rendered with VB's library, where more properties are read-only at run time (IsReadOnlyAtRunTimeOnAVisualBasic6Form(PropertyDefinition)); false for an RDForms form.

Exceptions

ArgumentException

The component's class does not have property.

FormErrorException

382 for a property a program cannot set (IsReadOnlyAtRunTime(PropertyDefinition), and on a Visual Basic 6.0 form IsReadOnlyAtRunTimeOnAVisualBasic6Form(PropertyDefinition)); 380 for a value the property cannot hold; 387 for an extent of an aligned control that its alignment fixes (Refusal(ComponentInstance, PropertyDefinition)); a menu item's errors for its Caption, Checked, Enabled and Visible (FormMenuItem).