10-19-2009, 06:08 PM
I am finishing up a program that a colleague of mine started some time ago. It was written in vb6 and is rather large. It was about 95% done when he gave up on it so I am hesitant to transfer everything to .NET on this project even though I prefer coding in it. Anyways, I have an event which builds an object in another program. Immediately following this event I need to access the object. Basically I need Event1 to fire Event2. My problem is that Event1 does not close until Event2 closes and the object is not created yet. I know that .NET handles multithreading so I tried to make a .DLL in .NET that does nothing other than fire an event in another thread. Notice I said TRIED. I can get the .DLL to fire the event in vb6. I can get msgboxes and simple things to go on another thread in the .DLL. For some reason I can't do both. I hope that my explanation is complete enough. Any help is greatly appreciated.