With the information provided it is difficult to ascertain what the exact problem is, but my guess is along the same lines as aussiemcgr. Are you setting your layout to null? If so, do not use this...