when ever i try to unload a menu item from the popup menu item under combbox click event like this

vb Code:
  1. For i = mnuTCategory.Count - 1 To 1 Step -1
  2.        Unload mnuTCategory(i)
  3. Next

I get this error "Unable to unload within this context". Can someone show me how to do this