|
-
Jan 24th, 2010, 12:59 AM
#1
Thread Starter
Addicted Member
[RESOLVED] WebBrowser
hi how can i clear the webbrowser every time a command pressed
thanks a lot
Private Sub Command1_Click()
Text1.Text = ""
Web.Document.write Text1.Text
End Sub
-
Jan 24th, 2010, 01:07 AM
#2
Lively Member
Re: WebBrowser
 Originally Posted by bordino
hi how can i clear the webbrowser every time a command pressed
thanks a lot
Private Sub Command1_Click()
Text1.Text = ""
Web.Document.write Text1.Text
End Sub

try this
Code:
Private Sub Command1_Click()
Web.Navigate "about:blank"
End Sub

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 24th, 2010, 01:11 AM
#3
Thread Starter
Addicted Member
Re: WebBrowser
i think im trying to clear the webbrowser before writing the textbox text to the webbrowser
if you press the command1 writes the textbox value to the web over and over again
clear the Previous webbrowser and then Web.Document.write Text1.Text
i tried this doesn't work
Private Sub Command1_Click()
If Len(Text1.Text) >= 1 Then
Web.Navigate "about:blank"
End If
Web.Document.write Text1.Text
End Sub
Last edited by bordino; Jan 24th, 2010 at 01:27 AM.
-
Jan 24th, 2010, 01:48 AM
#4
Lively Member
Re: WebBrowser
 Originally Posted by bordino
i think im trying to clear the webbrowser before writing the textbox text to the webbrowser
if you press the command1 writes the textbox value to the web over and over again
clear the Previous webbrowser and then Web.Document.write Text1.Text
i tried this doesn't work
Private Sub Command1_Click()
If Len(Text1.Text) >= 1 Then
Web.Navigate "about:blank"
End If
Web.Document.write Text1.Text
End Sub
Try this
Code:
Private Sub Command1_Click()
If Len(Text1.Text) >= 1 Then
Web.Navigate "about:" & Text1.Text
End If
End Sub
Last edited by agent_007; Jan 24th, 2010 at 02:07 AM.

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 24th, 2010, 02:16 AM
#5
Thread Starter
Addicted Member
-
Jan 24th, 2010, 02:55 AM
#6
Lively Member
Re: [RESOLVED] WebBrowser

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|