Guiándome por el ejemplo que me pasaste hice el siguiente código ahora el problema es que me crea la ventana y después la incrusta
Código Delphi
[-]procedure TfPrincipal.Button1Click(Sender: TObject);
begin
fmodulo.tVenta.Active := true;
fmodulo.tVenta.Insert;
fmodulo.tVenta.Post;
fmodulo.tVenta.Edit;
fmodulo.tVentadetalle.Active :=true;
fventa :=tfVenta.Create(self);
fventa.Show;
fVenta.ManualDock(dp1);
fVenta.Align := alclient;
fmodulo.tVenta.Active := false;
fmodulo.tVentadetalle.Active := false;
end;
Hay posibilidad de evitar esto?
y se puede tener el botón de cerrar en el tpanel?. También quisiera saber si hay la posibilidad de que un form cargue apenas inicie el programa y cuando se cierre el form que se este ejecutando este quede por defecto