I have a developer using vb.net to create his DLL.  In that, he's
raising events for his form.  I need to use his DLL in my windows
service written in C#, so I don't have UI event handling.

The vb.net dll has a FileLoaderMessageEventArgs class defined to help,
and the public event as this:
    Public Event HasNewStatus(ByVal FileLoaderMessageEventArgs)

raising the event is with this:
        RaiseEvent HasNewStatus(New FileLoaderMessageEventArgs("File
loaded"))

For my C# code, I am trying to define the event with this
        protected FileLoader.FileLoader.HasNewStatusEventHandler
FLHasNewStatus;

In my C# constructor, I have:
            FLHasNewStatus += new
FileLoader.FileLoader.HasNewStatusEventHandler(OnFLHasNewStatus);

I define a function as this:
        public void OnFLHasNewStatus
(FileLoader.FileLoaderMessageEventArgs args)
        {
            string s = args.Message;
        }

Why can't I get messages sent to me?  Thoughts?

Thanks in advance!
Dan

Reply via email to