Ver Mensaje Individual
  #1  
Antiguo 23-05-2005
jorodgar jorodgar is offline
Miembro
 
Registrado: abr 2005
Posts: 76
Reputación: 20
jorodgar Va por buen camino
error : has no parent windows

Tengo una unidad y un formulario principal.
En la unidad tengo el siguiente codigo :

function TNetDrive.FreeDriveName: string;
var
l : TStringList;
d : TDriveComboBox;
t : char;
i : integer;
begin
l:=TStringList.Create;
d:=TDriveComboBox.Create(self);
d.Parent:=Application.MainForm;
d.Visible:=false;
l.Assign(d.Items);
d.Free;
......
El error lo tengo en la linea d.Parent:=Application.MainForm; ya que si esa función me la pongo en el form principal y pongo d.Parent:=self, la cosa funciona perfectamente. ¿que está pasando ?
Responder Con Cita