home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,645 of 10,840   
   Jeff Johnson to Don   
   Re: Capture filename from dialog box   
   05 Sep 08 12:05:20   
   
   XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: i.get@enough.spam   
      
   "Don"  wrote in message   
   news:48c1543d.7650812@news.west.cox.net...   
      
   > How can I capture the name of the file a user right clicks in the open   
   > file dialog using the common dialog box control?   
   >   
   > I can capture the name if a file is double clicked, or OPEN is clicked   
   > after selecting a file, or CANCEL clicked, but if they choose to right   
   > click on a file and choose OPEN WITH option, then I can't seem to get   
   > the name of the file they selected.   
      
   They're not actually selecting the file at that point, at least not as far   
   as the common dialog is concerned. If they right-clicked and chose Select,   
   then that would be equivalent clicking Open, but not using Open With. Open   
   With is provided by Windows Explorer, and it's as invisible to the common   
   dialog as, say, copy and paste.   
      
   The bottom line is: tell your user not to do that, or at least that it's not   
   something your app supports.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca