If you use the designer to create your layouts you have to click on: Tools -> Generate Members and B4A will initialize them automatically but if you do it manually then you will have to do something like:
Dim MyLabel As Label
MyLabel.Initialize("MyLabel")