Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

CreatePopupMenu() with api

$
0
0

Hi...
i want to know how can i create menu with createpopupmenu() this method...
i write this but it dont work...
any idea...?
 

[DllImport("user32.dll")]
        static extern long DestroyMenu(long hMenu);
        [DllImport("user32.dll")]
        static extern long CreatePopupMenu();

CreatePopupMenu();
 
DestroyMenu((long)this.handle);


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>