Page 2 of 2

Re: Any Visual Basic Gurus?

Posted: Thu Mar 25, 2010 2:39 pm
by Genaga
If the program is in .NET then it is incredibly easy. Download Reflector (free) and decompile.

Re: Any Visual Basic Gurus?

Posted: Thu Mar 25, 2010 4:11 pm
by Gustava
Thank you, that's a pretty sweet program :)

Re: Any Visual Basic Gurus?

Posted: Thu Mar 25, 2010 4:29 pm
by Gustava
I'v been playing around with it this morning and got confused about this one line of code, basically it replaces a value on a form from a textbox - But I was trying to do it backwards:

Code: Select all

WebBrowser1.Document.GetElementById("productID").SetAttribute(TextBox6.Text, "value")
Grabbing it from this below:

Code: Select all

<input align="right" type="Text" name="productID" size="10" value="402">

I know when I do the last 2 values backwards -

WebBrowser1.Document.GetElementById("productID").SetAttribute("value", TextBox6.Text)



- it works fine. For example I used it to log into a site, it inserts the elements perfectly. Is there something more required to select an element off a webpage and send it to the textbox instead?