Autor Beitrag
blumione
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Do 18.12.08 21:26 
Hallo zusammen

Wieso wird eine neu erstellte WebBrowser Instanz nicht auf der Form dargestellt?
ausblenden C#-Quelltext
1:
2:
            WebBrowser webbi = new WebBrowser();
            webbi.Navigate("http://www.google.ch");


Ich habe auch versucht die vom Designer erstellten Angaben für einen neuen WebBrowser zu übernehmen aber es wird nicht angezeigt.
Die Breite.. etc. kann ich auslesen. Mit Visible = true habe ich es auch schon versucht..

Lg
:)
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19276
Erhaltene Danke: 1741

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 18.12.08 21:28 
Du musst die Komponente auch noch mit this.Controls.Add zu den Komponenten des Formulars hinzufügen. ;-)
blumione Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Do 18.12.08 21:32 
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
Du musst die Komponente auch noch mit this.Controls.Add zu den Komponenten des Formulars hinzufügen. ;-)


Dank dir vielmals!

Es hat geklappt :)