Can images be auto-resized while using the WebBrowser control in VB5

Reply

Join Date: Nov 2006
Posts: 13
Reputation: dtbradio is an unknown quantity at this point 
Solved Threads: 0
dtbradio dtbradio is offline Offline
Newbie Poster

Can images be auto-resized while using the WebBrowser control in VB5

 
0
  #1
Nov 22nd, 2006
I have written a small app which allows me to page through numerically-sequenced online images via a VB-5 WebBrowser control window and a few buttons. The app works quite well, but I want to know 2 things.

1. Is there a way to have images auto-resize to fit the available WebBrowser area within the app. I've read through the WebBrowser docs at MSDN.COM, but didn't find anything that helped.

2. Is there a way to directly access the right-click, SaveImageAs menu option without having to actually right-click over an image in the WebBrowser control while viewing onlineimages? What I want to do is set up a button that will automatically save an image to a pre-specififed directory using the full URL (with some minor modifications which I will code in) as the image save-as filename. I can do all the text manipulation to form the file-name etc, but I can't find a way to access the right-click menu with code. If there's a way to bring the image into a picture box, and save it from there, that would work as well.


Please note that I am using VB5 Professional editon when replying.
HAVE A NICE DAY!

Please do not assume that I have a clue just because I post possibly helpful replies. I am a programming amateur at best, and I do this for FUN.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 13
Reputation: dtbradio is an unknown quantity at this point 
Solved Threads: 0
dtbradio dtbradio is offline Offline
Newbie Poster

Update

 
0
  #2
Nov 22nd, 2006
UPDATE:

I stumbled across a code example at http://vbnet.mvps.org/index.html?cod...ilenocache.htm that gave me the file save ability I was looking for.
HAVE A NICE DAY!

Please do not assume that I have a clue just because I post possibly helpful replies. I am a programming amateur at best, and I do this for FUN.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC