Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPrinting in VB Pin
Maverick_8317-May-04 22:50
Maverick_8317-May-04 22:50 
GeneralVB Timer Control Pin
Simon Kearn17-May-04 7:01
sussSimon Kearn17-May-04 7:01 
GeneralRe: VB Timer Control Pin
Dave Kreskowiak17-May-04 7:10
mveDave Kreskowiak17-May-04 7:10 
GeneralRe: VB Timer Control Pin
VBGuruWantabe17-May-04 10:21
VBGuruWantabe17-May-04 10:21 
GeneralRe: VB Timer Control Pin
Simon Kearn18-May-04 0:54
sussSimon Kearn18-May-04 0:54 
GeneralRe: VB Timer Control Pin
Dave Kreskowiak18-May-04 2:16
mveDave Kreskowiak18-May-04 2:16 
GeneralUsing IDispatch Pin
CreativeCat17-May-04 5:24
CreativeCat17-May-04 5:24 
GeneralRe: Using IDispatch Pin
Dave Kreskowiak18-May-04 3:27
mveDave Kreskowiak18-May-04 3:27 
IDispatch is a little extreme for what you want to do.

You were on the right path with SAVEAS, but as you've found out, the WebControl will ask the user to pick the filename not matter what you try and save. This is, of course, a security reason. We don't want an app just saving thousands of copies of image to your machine without you knowing, do we? Smile | :)

You can use the URLDownloadToFile function, found in URLMON.DLL, to get around this:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Integer, ByVal szURL As String, ByVal _
szFileName As String, ByVal dwReserved As Integer, ByVal lpfnCB As Integer) As Integer

The docs on URLDownloadToFile are here[^].
There is a good example of it here[^], and the short KB Article on it here[^].

RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Using IDispatch Pin
CreativeCat18-May-04 4:14
CreativeCat18-May-04 4:14 
GeneralRe: Using IDispatch Pin
CreativeCat18-May-04 4:38
CreativeCat18-May-04 4:38 
GeneralRe: Using IDispatch Pin
Dave Kreskowiak18-May-04 9:49
mveDave Kreskowiak18-May-04 9:49 
GeneralRe: Using IDispatch Pin
CreativeCat18-May-04 9:51
CreativeCat18-May-04 9:51 
GeneralMdi Form Pin
XGaMeS17-May-04 3:38
XGaMeS17-May-04 3:38 
GeneralRe: Mdi Form Pin
Dave Kreskowiak17-May-04 3:56
mveDave Kreskowiak17-May-04 3:56 
GeneralRe: Mdi Form Pin
XGaMeS17-May-04 4:02
XGaMeS17-May-04 4:02 
GeneralActiveDesktop in VB.NET Pin
Emdek17-May-04 2:23
Emdek17-May-04 2:23 
GeneralRe: ActiveDesktop in VB.NET Pin
Dave Kreskowiak17-May-04 3:15
mveDave Kreskowiak17-May-04 3:15 
GeneralRe: ActiveDesktop in VB.NET Pin
Emdek17-May-04 3:52
Emdek17-May-04 3:52 
GeneralRe: ActiveDesktop in VB.NET Pin
Dave Kreskowiak17-May-04 3:59
mveDave Kreskowiak17-May-04 3:59 
GeneralRe: ActiveDesktop in VB.NET Pin
Emdek17-May-04 4:30
Emdek17-May-04 4:30 
GeneralRe: ActiveDesktop in VB.NET Pin
Dave Kreskowiak17-May-04 8:48
mveDave Kreskowiak17-May-04 8:48 
GeneralRe: ActiveDesktop in VB.NET Pin
Emdek17-May-04 9:37
Emdek17-May-04 9:37 
GeneralRe: ActiveDesktop in VB.NET Pin
Dave Kreskowiak17-May-04 9:56
mveDave Kreskowiak17-May-04 9:56 
Generalopenfile dialog box in VB.Net Pin
rubdub17-May-04 2:07
rubdub17-May-04 2:07 
GeneralRe: openfile dialog box in VB.Net Pin
Dave Kreskowiak17-May-04 3:11
mveDave Kreskowiak17-May-04 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.