<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'vb6 handles .net com class event' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'vb6 handles .net com class event' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 15:42:15 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 15:42:15 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>vb6 handles .net com class event</title>
      <link>http://www.programmersheaven.com/mb/VBNET/409229/409229/vb6-handles-net-com-class-event/</link>
      <description>i have the ComClassSearchCustomers class  and interface IComClassSearchCustomersat .net which used to create a tlb file. The class raise an event inside new. After that i have a vb6 form Form1 which catch the event , but it never see the event. Any ideas? &lt;br /&gt;
Option Strict On&lt;br /&gt;
Option Explicit On&lt;br /&gt;
Imports System.Runtime.InteropServices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Guid("BB86EB1C-6444-424f-B83B-A667561E06C3"), _&lt;br /&gt;
ComSourceInterfaces(GetType(IComClassSearchCustome
rs))&amp;gt; _&lt;br /&gt;
Public Class ComClassSearchCustomers&lt;br /&gt;
&lt;br /&gt;
    Public Delegate Sub printReportEventHandler(ByVal codes As String)&lt;br /&gt;
    Public Event printReport As printReportEventHandler&lt;br /&gt;
&lt;br /&gt;
       Public Sub New()&lt;br /&gt;
         MyBase.New()&lt;br /&gt;
         RaiseEvent printReport(“MARIA”)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Imports System.Runtime.InteropServices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Guid("D8F7EC74-0EFC-4e43-9B59-4CF741DF616D"), _&lt;br /&gt;
InterfaceType(ComInterfaceType.InterfaceIsIDispatc
h)&amp;gt; _&lt;br /&gt;
Public Interface IComClassSearchCustomers&lt;br /&gt;
    &amp;lt;DispId(1)&amp;gt; _&lt;br /&gt;
            Sub printReport(ByVal codes As String)&lt;br /&gt;
End Interface&lt;br /&gt;
Public WithEvents Instance As Search.ComClassSearchCustomers&lt;br /&gt;
&lt;br /&gt;
 Private Sub Form_Load()&lt;br /&gt;
 Set Instance = New Search.ComClassSearchCustomers&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Instance_printReport(ByVal codes As String)&lt;br /&gt;
MsgBox ("raise")&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/409229/409229/vb6-handles-net-com-class-event/</guid>
      <pubDate>Fri, 13 Nov 2009 08:08:27 -0800</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>
