View Single Post
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: context menu and print preview problem

 
0
  #2
Dec 25th, 2008
It seems that form2.list2.ContextMenuStrip references to the list in form1. Create a copy of the form1.cmenu

I didn't fully test this but it should be very easy to do:
  1. Dim ArrItems() As ToolStripMenuItem
  2.  
  3. ReDim ArrItems(form1.cmenu.Items.Count - 1)
  4. form1.cmenu.Items.CopyTo(ArrItems, 0)
  5. form2.list2.ContextMenuStrip.Items.AddRange(ArrItems)
Reply With Quote