Click here to Skip to main content
15,867,308 members
Articles / Programming Languages / Objective C

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

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
5 Jan 2023CPOL2 min read 26.5K   296   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.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Iran (Islamic Republic of) Iran (Islamic Republic of)
I learned VB from VB 6.0, And Now Use Visual Studio 2015.
I have made 'Group Policy Admin Template Maker' App to making GP Administrative Template for WinXP.

Comments and Discussions