Sumit Kumawat

Sumit Kumawat

  • NA
  • 454
  • 414.2k

Context menu stuck while selecting Files.

Jun 15 2012 9:34 AM

Hi all,

I am accessing all folders and Files of My computer in my application and also binding context menu with them.

my problem is when m using context menu for folders its coming normally but when i am selecting files my context menu is stucking... i am not getting why this happening.

here is my code..

 List<FileInfo> file = new List<FileInfo>();
               List<DirectoryInfo> dir = new List<DirectoryInfo>();

                if ((ViewModelVM) != null)
                 {
                    foreach (DirInfo item in ViewModelVM.SelectedItems)
                    {
                            file.Add(new FileInfo(item.Path));
                        

                    }
                    CustomtContextMenu ctxMnu = new CustomtContextMenu();

                    ctxMnu.ShowContextMenu(file.ToArray(), new System.Drawing.Point(x, y));

                    RefreshCurrentItems();
                }


Answers (2)