Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Displaying Data in WebBrowser
#2
Hi VicDesigns.
I think I can help you.
I am assuming your webbrowsers name = "webbrowser1" and your listboxs name = "listbox1".
I'm also guessing your code looks something like this right know?
Code:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        If ListBox1.SelectedIndex = 0 Then
            TextBox1.Text = "Definition"
        End If
        If ListBox1.SelectedIndex = 1 Then
            TextBox1.Text = "Definition"
        End If
        If ListBox1.SelectedIndex = 3 Then
            TextBox1.Text = "Definition"
        End If
        If ListBox1.SelectedIndex = 4 Then
            TextBox1.Text = "Definition"
        End If
    End Sub

If so, all you need to is change a single line of code. Where the code Textbox1.text = "definition", you just need to replace it with webbrowser1.DocumentText = "Definitioin"

Does this Help you out??
--VBCodeGeek--


Messages In This Thread
Displaying Data in WebBrowser - by VicDesigns - 07-26-2011, 03:21 AM
Re: Displaying Data in WebBrowser - by vbcodegeek - 07-26-2011, 11:12 AM
Re: Displaying Data in WebBrowser - by VicDesigns - 07-26-2011, 10:51 PM
Re: Displaying Data in WebBrowser - by vbcodegeek - 07-27-2011, 07:05 AM
Re: Displaying Data in WebBrowser - by VicDesigns - 07-27-2011, 06:18 PM
Re: Displaying Data in WebBrowser - by VicDesigns - 07-28-2011, 06:02 AM
Re: Displaying Data in WebBrowser - by xolara - 07-29-2011, 05:29 AM
Re: Displaying Data in WebBrowser - by VicDesigns - 07-31-2011, 05:32 AM
Re: Displaying Data in WebBrowser - by vbcodegeek - 07-31-2011, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I fill my form with MySQL data based on Combobox? kismetgerald 8 26,719 10-14-2012, 09:05 PM
Last Post: brandonio21
  Loading DB data into Combobox then populate TextBox Controls kismetgerald 0 5,712 09-02-2012, 08:44 PM
Last Post: kismetgerald
  Extracting Data From A Website Bradley 3 14,719 05-10-2012, 01:03 AM
Last Post: Bradley
  Bookmarking in Webbrowser Gamester699 0 5,917 11-03-2011, 12:28 PM
Last Post: Gamester699
  Update Data Tabel From Edit mfbf 1 8,551 07-30-2011, 12:54 PM
Last Post: brandonio21
  Custom Webbrowser Component vbcodegeek 2 11,524 07-12-2011, 03:56 AM
Last Post: vbcodegeek
  IceGecko WebBrowser Kaine599 3 15,057 02-17-2011, 02:34 PM
Last Post: redpois0n

Forum Jump:


Users browsing this thread: 1 Guest(s)