Autor Beitrag
F.Art
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Sa 24.12.05 23:55 
sobald ich diesen code in die form einbringe
Application.ShowMainForm:=False;

geht der webbrowser nicht mehr.
nur verstehe ich nicht wieso und vieleicht hat einer abhilfe für mich?
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Di 27.12.05 15:19 
kannst du etwas mehr code posten?

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
F.Art Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Di 27.12.05 22:27 
Ist das Projekt unsichtbar funktioniert das nicht mehr sonst ja.
Ich habe keine Idee woran das liegen könnte bzw wie ich das Problem beheben könnte.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
procedure TForm1.Button2Click(Sender: TObject);
var count:integer;
begin
WebBrowser1.silent := true;
WebBrowser1.Navigate('http://www.domain.de/ip.php');
repeat
Application.ProcessMessages;
until WebBrowser1.ReadyState = READYSTATE_COMPLETE;
memo1.Clear;
Quelltext(WebBrowser1, Memo1.Lines);
IPscan:=Memo1.Lines[0];

for count:=1 to length(IPscan) do try
    if not (IPscan[count] in ['0'..'9','.']) then
    IPscan:='';
    except
    end;
IP.Text:=IPscan;
end;


bei WebBrowser1.Navigate('http://www.domain.de/ip.php'); bleibt er immer stehen und macht nicht weiter.

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Di 27.12.05 22:39 
Hallo

probier mal ein
ausblenden Delphi-Quelltext
1:
Webbrowser.HandleNeeded;					

beim oncreate der Form oder vorm navigate auf

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
F.Art Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Mi 28.12.05 00:38 
damit funktioniert es