by Mohammed Sayed (3 Submissions)
Category: Coding Standards
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This example will show you how to register an extension to your application & open one instance of it. I know that there is an example at vbaccelerator.com (from were I know how to send a command line to an opened instance) but I feel that mine is much simpler. Note that using FindWindow API is a bad idea (I used it in my example just to make it simple) but the proper way is here : https://vbnet.mvps.org/index.html?code/system/findwindowlikesimple.htm or modifying this method : https://allapi.mentalis.org/apilist/09098F5B1181331F804A2CBCFB765371.html , This application use a Mutex instead of App.PrevInstance , please compile the it to associate file correctly.
API DeclarationsFew , for registry , mutex , subclassing , XP Styles , seding window messages , ............