I've a problem with the "ButtonDown" and "ButtonUp" Event
I set it with
AddEvent("ib"&j+i*3,ButtonDown,"frmNum_ButtonDown")
in a loop to serveral ImageButtons in RunTime. But they did not trigger.
In my routines I will change the look of those ImageButtons while they are pressed with a different Image from a ImageList.
If I set they with single events with the Designer it will work. If I use Click instead of ButtonDown or ButtonUp it will work too.
If the sub will be called, it will change the image, but it shows me a red rectangle with a cross in it.
Thanks for any help
If I send the image from the ImageList to the form, it will appear correctly.
I have no idea what's going on.
Maybe someone had the same trouble before and shares the solution or have another idea.
I set it with
AddEvent("ib"&j+i*3,ButtonDown,"frmNum_ButtonDown")
in a loop to serveral ImageButtons in RunTime. But they did not trigger.
In my routines I will change the look of those ImageButtons while they are pressed with a different Image from a ImageList.
If I set they with single events with the Designer it will work. If I use Click instead of ButtonDown or ButtonUp it will work too.
If the sub will be called, it will change the image, but it shows me a red rectangle with a cross in it.
Thanks for any help
If I send the image from the ImageList to the form, it will appear correctly.
I have no idea what's going on.
Maybe someone had the same trouble before and shares the solution or have another idea.