Results 1 to 6 of 6

Thread: [RESOLVED] WebBrowser

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    251

    Resolved [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

  2. #2
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: WebBrowser

    Quote Originally Posted by bordino View Post
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    251

    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.

  4. #4
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: WebBrowser

    Quote Originally Posted by bordino View Post
    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.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    251

    Re: WebBrowser

    grazie thanks man alooooooooooot

  6. #6
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: [RESOLVED] WebBrowser

    ur welcome

    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
  •  



Click Here to Expand Forum to Full Width