Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select files in a webbrowser control

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
IE
Hi,
With reference to thread222-1077839, I am using a webbrowser control to show a specific list of images in a specific diectory. I need to achieve 2 things though;

1. I need to allow the user to select one of the images so that I can save their selection. There is no click event on this control and if the user double clicks it only gives the image in a new window at its original size - any ideas?

2. I need to lock the conrol so that the user can only select an image - at the momment there is a right click menu that gives the user control over a lot of stuff including deleting the images and creating new files in the directory.

Perhaps the webbrowser control is not the way to go - basically all I need to to show the user a specific folder and display the images in it as thumbnails to him/her. I then need the user to be able to select one of those images so that I can save it to the database - nothing else.

Any ideas please?
 
With reference to that thread, are you using code from my referenced search or the code in the thread itself?

It is certainly possible to respond to clicks, but I need to know what route you took so far. For example, if you're leveraging the ShellFolderView you need to respond to the SelectionChanged event.
 
I'm thinking strongm that the code or yours in thread222-1513028 might be of a help to jbrowne...

Just a thought...

Good Luck

 
Hi guys - thanks for your replies. I was under pressure for a solution for this and had to kick on with a work-around though. In the end I used the common dialog control with validation to stop the user navigating to a differnet directory - it does the job for me for the moment.

Thanks again for your interest though

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top