I created a menu with this code:
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.
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.