Problem refences object in designer

arenaluigi

Well-Known Member
Licensed User
Longtime User
Hello,
sorry my bad english.

When to call a property of control generated to the designer, I get an error null pointer exception.

Example:

B4X:
dim pnl as panel (autogenerate by designer)

in the basic code

pnl.top=50 (this generate error) whi ?

Thanks
 

arenaluigi

Well-Known Member
Licensed User
Longtime User
Problem references in designer

Yes.

This my code:
B4X:
        Dim PnlHeader As Panel (generate by designer)
        Activity.LoadLayout("blacklist")
   PnlHeader.Initialize("")
        PnlHeader.top=30 (Error null)
   scrlDati.Initialize(0)
   PnlBody=scrlDati.Panel
   Activity.AddView(scrlDati,0,20, 100%x, 100%y)
Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…