AfterRender Event

Microsoft Access Visual Basic

AfterRender Event

       

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

Private Sub Form_AfterRender(ByVal drawObject As Object, ByVal chartObject As Object)

drawObject   A ChChartDraw object. Use the methods and properties of this object to draw objects on the chart.

chartObject   The object that has just been rendered. Use the TypeName function to determine what type of object has just been rendered.

Example

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

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