Type | Description | |||
InputFile as String | A String expression that specifies the file to be previewed. | |||
Cancel as Variant | (By Reference) A Boolean expression that specifies whether the operation is performed or canceled. By default, the Cancel parameter is False, which means the operation is going to be performed. |
The following VB sample prompts whether to accept or reject previewing the dropped file:
Private Sub Thumbnail1_Changing(ByVal Path As String, Cancel As Variant) Cancel = MsgBox("Do you want to preview the " & Path, vbYesNo) = vbNo End SubSyntax for Changing event, /NET version, on:
private void Changing(object sender,string InputFile,ref object Cancel) { } Private Sub Changing(ByVal sender As System.Object,ByVal InputFile As String,ByRef Cancel As Object) Handles Changing End Sub |
private void Changing(object sender, AxEXTHUMBNAILLib._IThumbnailEvents_ChangingEvent e) { } void OnChanging(LPCTSTR InputFile,VARIANT FAR* Cancel) { } void __fastcall Changing(TObject *Sender,BSTR InputFile,Variant * Cancel) { } procedure Changing(ASender: TObject; InputFile : WideString;var Cancel : OleVariant); begin end; procedure Changing(sender: System.Object; e: AxEXTHUMBNAILLib._IThumbnailEvents_ChangingEvent); begin end; begin event Changing(string InputFile,any Cancel) end event Changing Private Sub Changing(ByVal sender As System.Object, ByVal e As AxEXTHUMBNAILLib._IThumbnailEvents_ChangingEvent) Handles Changing End Sub Private Sub Changing(ByVal InputFile As String,Cancel As Variant) End Sub Private Sub Changing(ByVal InputFile As String,Cancel As Variant) End Sub LPARAMETERS InputFile,Cancel PROCEDURE OnChanging(oThumbnail,InputFile,Cancel) RETURN |
<SCRIPT EVENT="Changing(InputFile,Cancel)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Changing(InputFile,Cancel) End Function </SCRIPT> Procedure OnComChanging String llInputFile Variant llCancel Forward Send OnComChanging llInputFile llCancel End_Procedure METHOD OCX_Changing(InputFile,Cancel) CLASS MainDialog RETURN NIL void onEvent_Changing(str _InputFile,COMVariant /*variant*/ _Cancel) { } function Changing as v (InputFile as C,Cancel as A) end function function nativeObject_Changing(InputFile,Cancel) return |