Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.
Public Class Class1 'The delegate stuff in class 1: Public Delegate Sub GetMessage(ByVal strData As String) Private _GetMessage As GetMessage Public Sub GetMessages(ByVal del As GetMessage) _GetMessage = del End Sub 'The main routine in Class1 Public Sub Start() 'code here to do stuff End Sub 'The routine to invoke the delegate and pass the string to Form1 Private Sub WriteDebug(strData as String) 'code here to write to file _GetMessage.Invoke(strData) End Sub End Class Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim c as new Class1 Dim delegateGetMessages As New Class1.GetMessage(AddressOf ShowMessage) c.GetMessages(delegateGetMessages) c.Start End Sub Private Sub ShowMessage(ByVal strData As String) TextBox1.Text += strData End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.