Object.Attach (gb)
Static Sub Attach ( Object As Object, Parent As Object, Name As String )
Attach an object to its parent.
Name is the name used for searching event handlers in the
Parent object.
Every event raised by the object will be managed by an event-handler
located in its parent.
If the parent is a class, then the the event-handlers will be static
methods of the class.
The following code:
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component
is equivalent to:
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component
Examples
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component
The next example will create 8 PictureBoxes and each time one of the picture boxes is clicked (MouseUp) then the on/off state in the Tag property and the
Picture are toggled.
Here is demonstrated how an array of control elements can receive a signal, in this example the signal "MouseUp"
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component