Hi,
When I try to use the AddEvent statement I get the following error
message.
Program Statement: (in the main.app_start subroutine)
AddEvent ("Image1", Click,"BtnSub0")
Error Message:
Error description: KeyNotFoundException
The given key was not present in the dictionary.
I want to add an Image control to Form1 at run time and
assign events to it, but I keep getting the above error message.
Program Code:
Sub Globals
End Sub
Sub App_Start
Form1.Show
AddImage ("Form1","image1",0,0,60,20)
image1.Image="y60w35.jpg"
AddEvent ("image1", Click,"BtnSub0")
End Sub
Sub BtnSub0
End Sub
I am using Basic4PPC version 6.90 on the desktop and the device.
Does anyone have any ideas on how to get rid of this error message?
Does the AddEvent statement work with the ImageButton control?
In the Basic4PPC documentation the ImageButton control is not listed
as being supported by the AddEvent statement.
When I try to use the AddEvent statement I get the following error
message.
Program Statement: (in the main.app_start subroutine)
AddEvent ("Image1", Click,"BtnSub0")
Error Message:
Error description: KeyNotFoundException
The given key was not present in the dictionary.
I want to add an Image control to Form1 at run time and
assign events to it, but I keep getting the above error message.
Program Code:
Sub Globals
End Sub
Sub App_Start
Form1.Show
AddImage ("Form1","image1",0,0,60,20)
image1.Image="y60w35.jpg"
AddEvent ("image1", Click,"BtnSub0")
End Sub
Sub BtnSub0
End Sub
I am using Basic4PPC version 6.90 on the desktop and the device.
Does anyone have any ideas on how to get rid of this error message?
Does the AddEvent statement work with the ImageButton control?
In the Basic4PPC documentation the ImageButton control is not listed
as being supported by the AddEvent statement.
Last edited: