title: VB Event cannot be called directly, use raiseevent
body: <p>Apparently I can't call an event directly in VB and I need to use the raise event statement to initiate that event. I don't know what the <code>RaiseEvent</code> statement is or how to use it and the Microsoft support site is vague and useless. Can someone please help me re-work this section.</p>
  
  <p>This is my VB conversion:</p>
  
  <pre><code>        Public Sub ttApiInitComplete(api As TTAPI, ex As ApiCreationException)
          If ex Is Nothing Then
              ' Connect to X_TRADER
              apiInstance = DirectCast(api, XTraderModeTTAPI)
              apiInstance.ConnectionStatusUpdate += New EventHandler(Of ConnectionStatusUpdateEventArgs)(AddressOf m_apiInstance_ConnectionStatusUpdate)
              apiInstance.Start()
  
              Console.WriteLine("API Initialization Complete")
          Else
              Console.WriteLine("API Initialization Failed - see ex.Message for details")
          End If
      End Sub
  </code></pre>
  
  <p>This is to original working C#</p>
  
  <pre><code>        public void ttApiInitComplete(TTAPI api, ApiCreationException ex)
      {
          if (ex == null)
          {
              // Connect to X_TRADER
              apiInstance = (XTraderModeTTAPI)api;
              apiInstance.ConnectionStatusUpdate += new EventHandler&lt;ConnectionStatusUpdateEventArgs&gt;(m_apiInstance_ConnectionStatusUpdate);
              apiInstance.Start();
              Console.WriteLine("API Initialization Complete");
  
          }
          else
          {
              Console.WriteLine("API Initialization Failed - see ex.Message for details");
          }
      }
  </code></pre>