Autor Beitrag
delphiuserno1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: So 18.06.06 12:33 
Hallo

Ich wollte mir zur laufzeit einen Webbrowser erstellen. Das habe ich so realisiert:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
wb:=TWebbrowser.Create(Self);
  with wb do
    begin
      wb.Parent:=form1;
      left:=10;
      top:=100;
      width:=100;
      height:=30;
    end;


Allerdings gibt der Compiler ne Fehlermeldung aus bei

ausblenden Delphi-Quelltext
1:
WB.parent:=form1;					


Einer Nur-Lesen Eigenschaft kann kein Wert zugewiesen werden


Warum funktioniert das nicht? Weiß jemand warum der da meckert? Wenn ich das mit nem Edit feld oder so mache funktionert es.


THX schon mal

greetz
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: So 18.06.06 13:13 
Ahoi,
probiers mal so:
ausblenden Delphi-Quelltext
1:
TWinControl(wb).Parent:=form1;					


Ciao
delphiuserno1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: So 18.06.06 14:37 
Super! Danke funzt einwandfrei!
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: So 18.06.06 15:10 
user profile icondelphiuserno1 hat folgendes geschrieben:
Super! Danke funzt einwandfrei!


Gern geschehen ;-)