See Also Example
Applies To
Label, picture box
Description
Occurs when the source
Syntax
Sub ctlname_LinkNotify (Index As Integer)
Remarks
The argument Index uniquely identifies a control if it is in a control array Typically, in the LinkNotify event your code notifies the user, gets the new data immediately, or defers getting the data until later. You can use the LinkRequest method to obtain the new data from the source.
Help:
Attaching an Event Procedure to a Form or Control
LinkClose Event
LinkError Event
LinkExecute Method
LinkMode Property
LinkOpen Event
LinkRequest Method
LinkTopic Property
Using DDE
Programmer's Guide:
Chapter 20, "Communicating with Other Applications"
The example is attached to a picture box control, Picture1, which has its LinkMode property set to 3 (Notify) and its LinkTopic and LinkItem properties set to specify picture data in the source. When the source changes this data, the procedure updates the picture box immediately only if the picture box is on the active form (the form that has the focus); otherwise it sets a flag variable. The example is for illustration only.
Sub Picture1_LinkNotify ()
If Screen.ActiveForm Is Me Then
Picture1.LinkRequest ' Picture is on active form, so update.
Else
NewDataFlag = True ' Assumed to be a module-level variable.
End If
End Sub