Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21100

Getting data from WebBrowser into VB6 application

$
0
0
I need to load a page into WebBrowser, click on a item on that page and get the data into my VB application.

Below is the HTML code. If you click on any of the 10 images a color value is placed in the textbox named 'color'. I need to get that color value into my app.

Anyone know how I can do this?

Code:

<html>
<form name="post_1">
<tr>
<td width="670">
<table>
<tr>
<td><input type="text" size="12" name="color" value="blue" maxlength="12"></td>

<td onclick="document.post_1.color.value='black'"><img src="http://66.70.148.253/f1.gif"></td>

<TD onclick="document.post_1.color.value='orange'"><IMG src="http://66.70.148.253/f1.gif"></TD>

<td onclick="document.post_1.color.value='red'"><img src="http://66.70.148.253/f2.gif"></td>

<td onclick="document.post_1.color.value='green'"><img src="http://66.70.148.253/f3.gif"></td>

<td onclick="document.post_1.color.value='blue'"><img src="http://66.70.148.253/f4.gif"></td>

<td onclick="document.post_1.color.value='#ffcc00'"><img src="http://66.70.148.253/f5.gif"></td>

<td onclick="document.post_1.color.value='#ff8040'"><img src="http://66.70.148.253/f6.gif"></td>

<td onclick="document.post_1.color.value='#ff33ff'"><img src="http://66.70.148.253/f7.gif"></td>

<td onclick="document.post_1.color.value='#ff6699'"><img src="http://66.70.148.253/f8.gif"></td>

<td onclick="document.post_1.color.value='#66ccff'"><img src="http://66.70.148.253/f9.gif"></td>

</tr>
</table>
</form>
</html><html>
<form name="post_1">
<tr>
<td width="670">
<table>
<tr>
<td><input type="text" size="12" name="color" value="blue" maxlength="12"></td>
<td onclick="document.post_1.color.value='black'"><img src="http://66.70.148.253/f1.gif"></td>

<TD onclick="document.post_1.color.value='orange'"><IMG src="http://66.70.148.253/f1.gif"></TD>


<td onclick="document.post_1.color.value='red'"><img src="http://66.70.148.253/f2.gif"></td>
<td onclick="document.post_1.color.value='green'"><img src="http://66.70.148.253/f3.gif"></td>
<td onclick="document.post_1.color.value='blue'"><img src="http://66.70.148.253/f4.gif"></td>
<td onclick="document.post_1.color.value='#ffcc00'"><img src="http://66.70.148.253/f5.gif"></td>
<td onclick="document.post_1.color.value='#ff8040'"><img src="http://66.70.148.253/f6.gif"></td>
<td onclick="document.post_1.color.value='#ff33ff'"><img src="http://66.70.148.253/f7.gif"></td>
<td onclick="document.post_1.color.value='#ff6699'"><img src="http://66.70.148.253/f8.gif"></td>
<td onclick="document.post_1.color.value='#66ccff'"><img src="http://66.70.148.253/f9.gif"></td>
</tr>
</table>
</form>
</html>


Viewing all articles
Browse latest Browse all 21100

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>