is there a way in delphi 2009 to make form controls private? eg: if i add a label at design time, i'd like for it to impossible for code outside the form to access the label.
(does delphi 2010 have this?)
is there a way in delphi 2009 to make form controls private? eg: if i add a label at design time, i'd like for it to impossible for code outside the form to access the label.
(does delphi 2010 have this?)
control is field of form. put it in private section:
TForm1 = class(TForm)
Private
TLabel label;
Public
procedure FormCreate(Sender: TObject);
end;
Design-time controls cannot be made private. They must be published in order for DFM streaming to work correctly.