title: How can I RaiseEvent in VB.net
body: <p>I have 2 project in my Solution. <Br>
  Lets say Proj A and Proj B. <Br>
  <P>
  Proj A is having my custom event. and same Proj is Raising that event using RaiseEvent Function of Vb.net And Proj B is having reference of Proj A.  <br>
  Proj B is adding handler for Proj A's custom event. <br><br></p>
  
  <p>but my custom event cant raise. 
  Could any one can explain me how can I do that.?</p>
  
  <p>Edit:</p>
  
  <p>Proj A </p>
  
  <pre><code>Public Shared Event cardReadComplete(ByVal data As String)
   Public Sub kbHook_KeyDown(ByVal Key As Windows.Forms.Keys) 
    IO.File.AppendAllText("E:\log.log", Key.ToString() &amp; vbCrLf)
   RaiseEvent cardReadComplete(encryptedData)
  End Sub
  </code></pre>
  
  <p>Proj B</p>
  
  <pre><code> Private Sub handleSwipeCardRequest(ByVal msgText As String)
          AddHandler CardReader.Main.cardReadComplete, AddressOf sendSwipeCardDetails
          CardReader.Main.cardReadComplete()
  End Sub
  </code></pre>
  
  <p>I am calling handleSwipeCardRequest function first and then Raising its event.</p>