Dim hInstance As IntPtrhInstance = System.Runtime.InteropServices.Marshal.GetHINSTANCE( _ GetType(YourClass).Module )
Mattias
===Mattias Sjögren (VB MVP)mattias @ mvps.orghttp://www.msjogren.net/dotnet/