Changing class in delphi

Hi i have form which is mdichild,

How can i Change class in TForm in run time

Thx
hrvica5Asked:
Who is Participating?
 
Ferruccio AccalaiConnect With a Mentor Senior developer, analyst and customer assistance Commented:
That meas that your form descends from a TMDIChild form. You cannot change the ancestor on the fly.
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
That's not a class, it's a formstyle

procedure TForm1.FormCreate(Sender: TObject);
begin
  self.FormStyle := fsNormal;
end;
0
 
hrvica5Author Commented:
It says cannot make a visible window modal


unit JForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, JvExStdCtrls, JvEdit, JvDBSearchEdit, CHILDWIN, StdCtrls,
  JvCheckBox, ExtCtrls, Buttons, JvExControls, JvXPCore, JvXPButtons, ADODB, DB;

type
  TForm =  class(TMDIChild).....  >>>> i want change this in TForm


thx
0
 
hrvica5Author Commented:
thank you for your help, at least i knopw that i have to make another form
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.