07-26-2011, 11:12 AM
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?
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??
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--