Skip to content

OLESetData Event

Description

Occurs on a source component when a target component performs the GetData method on the source’s DataObject object, but before the data for the specified format has been loaded.

Syntax

Public Event OLESetData( _
    ByVal Data As DataObject, _
    ByRef DataFormat As Integer _
)

Parameters

  • Data: A DataObject object containing formats that the source will provide and, in addition, possibly the data for those formats. If no data is contained in the DataObject, it is provided when the control calls the GetData method.

  • DataFormat: An integer specifying the format of the data the target component is requesting. The source component uses this value to determine what to load into the DataObject object.

Remarks

This event allows the source to respond to only one request for a given format of data. When this event is called, the source should check the format parameter to determine what needs to be loaded and then perform the SetData method on the DataObject object to load the data which is then passed back to the target component.

See Also

FlatEdit Control


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.