Share via


Form.AfterRender Event

Access Developer Reference

Occurs after the object represented by the chartObject argument has been rendered.

Syntax

expression.AfterRender(drawObject, chartObject)

expression   A variable that represents a Form object.

Parameters

Name Required/Optional Data Type Description
drawObject Required Object A ChChartDraw object. Use the methods and properties of this object to draw objects on the chart.
chartObject Required Object The object that has just been rendered. Use the TypeName function to determine what type of object has just been rendered.

Return Value
nothing

Example

The following example demonstrates the syntax for a subroutine that traps the AfterRender event.

Visual Basic for Applications
  Private Sub Form_AfterRender( _
        ByVal drawObject As Object, ByVal chartObject As Object)
    MsgBox TypeName(chartObject) & " has been rendered."
End Sub