I dynamically create a connection form with several components on it
3 x TLabel's
2 x TComobBox's
1 x TEdit
2 x TButton's
1 Button processes the connection
the other button cancels the connection and closes the form
with only two buttons on the form everything works fine as soon as I add any other components an exception error occurs.
I create each component as Create(Tform) NB. Tform is the dynamic form.
I also set the parent to TForm.
My Cancel button has the following code :-
GetParentForm(Sender as TControl).Destroy;
Any Ideas
or more information required
thanks in advance
Jason Jason Thomas
AssetCenter Consultant
3 x TLabel's
2 x TComobBox's
1 x TEdit
2 x TButton's
1 Button processes the connection
the other button cancels the connection and closes the form
with only two buttons on the form everything works fine as soon as I add any other components an exception error occurs.
I create each component as Create(Tform) NB. Tform is the dynamic form.
I also set the parent to TForm.
My Cancel button has the following code :-
GetParentForm(Sender as TControl).Destroy;
Any Ideas
or more information required
thanks in advance
Jason Jason Thomas
AssetCenter Consultant