Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Context menu in memory

$
0
0
I created a menu with this code:
Dim mnu As New ContextMenuStrip
        mnu.MaximumSize = New System.Drawing.Size(300, 270)
        For Each item As String In My.Settings.Favorites
            mnu.Items.Add(item)
        Next
        AddHandler mnu.ItemClicked, AddressOf mnu_click
        mnu.Show(PictureBox4, PictureBox4.PointToClient(Windows.Forms.Cursor.Position))



All works, but I have a question, if menu is displayed and then closed, is closed menu still in memory ?
If I open, close, and then open menu again, are 2 menu copies in memory ?
...If are, how I can remove it ?
Thanks for help.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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