Folks, I have a working .NET Form that runs fine as a modal dialog in managed apps, it's used to pick an item from a list and it returns the Int32 Id of the selected item. Now I have to make this dialog available to VB6. I've done plenty of Interop before to wrap managed library methods as ComVisible, but this is the first time I've tried this with a Window.Forms class.
I presume the VB6 caller can only pass me a HWND, so I ran a few experiments to see if I could convert a HWND from an NUnit test to an Owner of my dialog, but I can't figure that out. I then tried HWND to NativeWindow to ShowDialog(owner) on the caller side, but it doesn't run modal. It's not looking good so far. I have a feeling I'm heading into a world of pain trying make the modal behaviour work with a VB6 caller. I can't get any definitive advice from web searches so far, so I thought I'd ask first to see if anyone has been there before. Greg
