Hello, I have created a program that will help people purchase items online by opening a browser window to the product when they click a button.
However, there's a CheckListBox where they select the item, and click the button. The weblink should change each time they change their selection,
but the web link opens when they click the item in the CheckListBox, before they click the button.
Code Example
Private Sub CheckedListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckedListBox1.SelectedIndexChanged
Select Case CheckedListBox1.SelectedIndex
Case 0
Button1.PerformClick()
Try
System.Diagnostics.Process.Start("http://powerfx.com/products/sweet-ann")
Catch
End Try
End Select
End Sub
End Class
Thank you for any help.
However, there's a CheckListBox where they select the item, and click the button. The weblink should change each time they change their selection,
but the web link opens when they click the item in the CheckListBox, before they click the button.
Code Example
Quote:
Private Sub CheckedListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckedListBox1.SelectedIndexChanged
Select Case CheckedListBox1.SelectedIndex
Case 0
Button1.PerformClick()
Try
System.Diagnostics.Process.Start("http://powerfx.com/products/sweet-ann")
Catch
End Try
End Select
End Sub
End Class