Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, May 24, 2012 2:19:22 AM(UTC)

Groups: Registered
Posts: 11

I have associated a ContextMenuStrip with a RasterImageList, when i select items in the list and then i click right click the context menu will show but what i find is that the selection of items is lost when doing so.

if i clicked CTRL with right click, the items will remain selected

Is there any way to keep the items selected when clicking right click without the need of clicking ctrl?

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, May 24, 2012 6:53:58 AM(UTC)


Groups: Registered
Posts: 256

You can store the index of the currently selected item in a variable of your own, then when you want to display the menu without changing the selection, handle the event (such as MouseDown), and set the RasterImageList.Item[index].Selected property to true.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.040 seconds.