event EditChange (ID as Long)
Fired when the caption of the item's edit was altered

TypeDescription
ID as Long A long expression that indicates the item's identifier.

The EditChange event is fired when the user alters the item's edit caption.  The EditChange event is fired only if the AllowEdit property is True.  Use the EditCaption property  to get the edit's caption for an item. Use the Item property to get an menu's item given its identifier. 

Syntax for EditChange event, /NET version, on:

private void EditChange(object sender,int ID)
{
}

Private Sub EditChange(ByVal sender As System.Object,ByVal ID As Integer) Handles EditChange
End Sub

Syntax for EditChange event, /COM version, on:

private void EditChange(object sender, AxEXMENULib._IMenuEvents_EditChangeEvent e)
{
}

void OnEditChange(long ID)
{
}

void __fastcall EditChange(TObject *Sender,long ID)
{
}

procedure EditChange(ASender: TObject; ID : Integer);
begin
end;

procedure EditChange(sender: System.Object; e: AxEXMENULib._IMenuEvents_EditChangeEvent);
begin
end;

begin event EditChange(long ID)
end event EditChange

Private Sub EditChange(ByVal sender As System.Object, ByVal e As AxEXMENULib._IMenuEvents_EditChangeEvent) Handles EditChange
End Sub

Private Sub EditChange(ByVal ID As Long)
End Sub

Private Sub EditChange(ByVal ID As Long)
End Sub

LPARAMETERS ID

PROCEDURE OnEditChange(oExMenu,ID)
RETURN

Syntax for EditChange event, /COM version (others), on:

<SCRIPT EVENT="EditChange(ID)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function EditChange(ID)
End Function
</SCRIPT>

Procedure OnComEditChange Integer llID
	Forward Send OnComEditChange llID
End_Procedure

METHOD OCX_EditChange(ID) CLASS MainDialog
RETURN NIL

void onEvent_EditChange(int _ID)
{
}

function EditChange as v (ID as N)
end function

function nativeObject_EditChange(ID)
return

The following VB sample displays the caption of the edit control when the user alters it: 

Private Sub ExMenu1_EditChange(ByVal ID As Long)
    With ExMenu1.Item(ID)
        Debug.Print .Caption & " " & .EditCaption
    End With
End Sub

The following C++ sample displays the caption of the edit control when user alters it: 

#include "Item.h"
void OnEditChangeExmenu1(long ID) 
{
	CItem item = m_menu.GetItem( COleVariant(ID) );
	OutputDebugString( item.GetCaption() );
	OutputDebugString( item.GetEditCaption() );
}

The following VB.NET sample displays the caption of the edit control when user alters it: 

Private Sub AxExMenu1_EditChange(ByVal sender As Object, ByVal e As AxEXMENULib._IMenuEvents_EditChangeEvent) Handles AxExMenu1.EditChange
    With AxExMenu1.item(e.iD)
        Debug.WriteLine(.Caption & " " & .EditCaption)
    End With
End Sub

The following C# sample displays the caption of the edit control when user alters it: 

private void axExMenu1_EditChange(object sender, AxEXMENULib._IMenuEvents_EditChangeEvent e)
{
	EXMENULib.item item = axExMenu1[e.iD];
	System.Diagnostics.Debug.WriteLine(item.Caption + " " + item.EditCaption );
}

The following VFP sample displays the caption of the edit control when user alters it:

*** ActiveX Control Event ***
LPARAMETERS id

with thisform.ExMenu1.Item(id)
	wait window nowait .Caption + " " + .EditChange
endwith