No it's not a bug !
As Erel already told you !
Don't confuse Modules and pages.
In the Main module you can handle several pages !
Look at chapter 12 User Interfaces in the B4i Beginner's Guide.
Other question:
now i have 2 modules (files), i must capture the events of page2 text on page2 module,
work only if i write into main module.
Maybe i must change the parent, how to ?
B4X:
work fine
Main
Sub TextEmail_EnterPressed
Msgbox ("Main TextEmail EnterPressed", "Debug")
End Sub
doesn't work
Page2
Sub TextEmail_EnterPressed
Msgbox ("Page2 TextEmail EnterPressed", "Debug")
End Sub