Click here to Skip to main content
15,888,610 members
Articles / Programming Languages / XML

VB .NET/WinForms: Create Form's MainMenu by Load Menu from Resource-Only DLL

15 Dec 2022CPOL2 min read 26.7K   298   12  
Load Menu from Resource-Only DLL (Created by VC++) and Set for Form As MainMenu by API Functions.
Load Dynamic Link Library Created by VC++ As Resource-Only DLL by 'LoadLibrary' API Function, Load Menu from Resource DLL by 'LoadMenu' API Function, Set Resource Menu as MainMenu of the Form by 'SetMenu' API Function. Frees the loaded dynamic-link library (DLL) module by 'FreeLibrary' API Function.
This is an old version of the currently published tip/trick.

Only logged in members can view this content

Please go to the XML Table of Contents to view the list of available articles in this section.