| | |
Can images be auto-resized while using the WebBrowser control in VB5
![]() |
•
•
Join Date: Nov 2006
Posts: 13
Reputation:
Solved Threads: 0
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.
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.
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.
•
•
Join Date: Nov 2006
Posts: 13
Reputation:
Solved Threads: 0
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.
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.
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.
![]() |
Similar Threads
- Opening a new window form with web browser control,with webbrowser.navigating event (VB.NET)
- alternative to inet control (ASP)
- Horizontal display of data on Repeater control in asp.net (ASP.NET)
- Using WebBrowser Control in Win32 (C)
- Reducing pixelization in images (ASP.NET)
- Drop Down Menu - Problem Opening in IE (JavaScript / DHTML / AJAX)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: sms through pc
- Next Thread: Calculator code, pls help
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





