Public Function MettreTrueBouton() as Boolean Buttonsolution.Enabled = True Return True End Function
Delegate Function Delegate_MettreTrueBouton() as Boolean
Public Instance_MettreTrueBouton as TAFORM.Delegate_MettreTrueBouton = New Delegate_MettreTrueBouton(AddressOf Me.MettreTrueBouton)
Me.Invoke(Instance_MettreTrueBouton)
A delegate can be defined as a type safe function pointer. It encapsulates the memory address of a function in your code. Whenever you create or use an event in code, you are using a delegate. When the event is thrown, the framework examines the delegate behind the event and then calls the function that the delegate points to. As we will see later, delegates can be combined to form groups of functions that can be called together.
Delegate Function Delegate_MettreTrueBouton() as Boolean
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question