Make Webbrowser1.getelementbyid("ID")=textbox1.text?
Mar 22, 2011
the code on the page: <div id="currentactivity"> Last seen 47 minutes ago playing db: raging blast <div>
what im trying to achieve is to make textbox1.text = the current activity so that would be (Last seen 47 minutes ago playing db: raging blast)
ex1)webbrowser1.getelementbyid("currentactivity") = textbox1.text
ex2)webbrowser1.getelementbyid("currentactivity").text = textbox1.text
something like that
View 3 Replies
ADVERTISEMENT
May 25, 2011
I have one question, I search it on google, this forum and many others bud could not find solution ...So I am taking this just for example :We are creating "Facebook automatic logginer". We have 2 textboxes, 1 button and 1 webbrowser (pic)
(we set on form_load WebBrowser1.Navigate("http://www.facebook.com") )So now what I need is :How to text from textboxes in form put on facebook login page ...
For example you enter Email: example@example.com
Pass: somepass and press button Log In it puts this text on facebook write it in same order and press fb button Log In.So you are automaticly loged in...
[code]...
View 2 Replies
Sep 20, 2010
stuck on this one basically, im trying to navigate from one page to another iv looked though the HTML code found the input_id and .invokemember("Click")
the line of code i used was WebBrowser1.Document.GetElementById("ctl00_ContentPlaceHolder1_btnNext").InvokeMember("click")
[code].....
View 2 Replies
Jul 19, 2009
I have a working code that works if the element id exists, but what happens when it doesn't. It stops the code read from where it doesn't exist. I don't receieve any errors,. I have tried:
If WebBrowser1.Document.GetElementById("displayAge") = "" Then <---this doesn't work, needs to check if Element exists if not then exits, if does then it gets attribute
[Code]...
View 10 Replies
Feb 25, 2011
is there anyway to make listbox1.item1=textbox1.text? or the first row of richtextbox1=textbox1.text?
View 1 Replies
Feb 23, 2012
I want to add a condition when textbox1.text changes , the added text to textbox1.text is showed in another textbox.
View 6 Replies
Feb 4, 2012
my problem:
HTML source
...<input type="submit" value="buy" name="Submit"/>...
I can`t use WebBrowser1.Document.GetElementById("Submit").InvokeMember("click") because in this page is more than one form with name="Submit".
View 2 Replies
Jan 2, 2010
This should be pretty easy, I've been experimenting, just can't seem to figure it out. I'm trying to make a MsgBox popup with the text that is in Textbox1 and Textbox2. I want the MsgBox to display both values...
View 3 Replies
Nov 12, 2011
How to make an SAVE button that saves the text from Textbox1,2,3 and add an comment on the file.Example:
1 button named "Save", when click to save the text from textbox1,2,3 in file named "Anti.txt" (in the same directory where is the .exe file)
2. to display an message when save is complate, if it is not to display error that cannot be saved
I got simply code for save,but i dont know how to modify it to be like this: [code] Where it is Textbox1: to be like a title in the .txt file and after it to add the text from the textbox1.
View 4 Replies
Dec 22, 2011
I am working on bit more advanced calculator, but I cant figure out how I can make my program to calculate textbox1.text and show the answer in textbox2
For example: (textbox1) 5*62+4
(textbox2)314
I'm not sure this question belong in this topic, but I don't know where else it should be?
View 16 Replies
Aug 29, 2009
<p><a href="library.php"><img src="images/choose-library.jpg" alt="Choose from the PrankDialer library" width="450" height="175" border="0" title="Our selection of pranks is constantly growing" /></a></p>
That's the code for it but i can't figure out how to make it click it. Usually I'd go with this:
WebBrowser1.document.GetElementById("imageid").InvokeMember("click")
But it won't work in this situation
View 1 Replies
Sep 3, 2009
I have a Textbox1 and I'm making a function that adds " at the beginning and " at the end of the textbox when u click a button called Button2.
[code]...
View 2 Replies
Feb 16, 2011
I'm trying to make a button that can change webbrowser1 Size so it gets maximized.
How can i do this?
View 2 Replies
Jun 5, 2012
How do I make webbrowser1 refresh a certain amount of times?
View 5 Replies
Jun 10, 2011
WebBrowser1.Navigate("http://" + TextBox2.Text + "/robbery/index/humanhunt/1")
How can i make this code execute the times that TextBox1.Text indicated?It should be some kind of loop. but i want it to repeat this every 100 milliseconds?
View 3 Replies
Jul 8, 2009
If i put it navigate to one link and i want it find another link by word?"DoDoo" word is now link for example.
How i can do this:
Webbrowser1.findword.("DoDoo")
Webbrowser1.click.findword.match
View 5 Replies
May 14, 2012
this is the tag : <div class="name" title="happy hamster">
trying to achieve:
dim test = WebBrowser1.Document.GetElementsByTagName("div")
richtextbox1.text = test
View 5 Replies
Mar 13, 2012
I try to make a text to go from "textbox1" to "textbox2". and if it a text in "Texbox2" say "World" and in "textbox1" say "hello", can i do like it wil be "Helloworld" or "worldHello" in "textbox2"
View 2 Replies
Feb 10, 2012
I'm useing WebBrowser1 and the code i use to get the text is[code]...
i want to make richtextbox that retrieve the selected text without the copy paste method.i want it to be sensitive to the mouse click so it can retrieve the selected text.
View 3 Replies
Apr 21, 2010
If TextBox1.Text.Contains = ("@") Then I need to make sure textbox1 contains a @. And its supposed to be a code like that.
View 14 Replies
Nov 25, 2008
how i can make the WebBrowser1 refresh an infinite amount of times really fast and with a click of a button?This is the code i have right now:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
WebBrowser1.Refresh()
End SubThe above code only makes the webBrowser1 refresh 1 time, but i want it to refresh infinite times with a click of a button.
View 6 Replies
Apr 30, 2012
[Code]...
I get an error on "colorNumber" in the line/ colorNumber = Convert.ToInt32(TextBox1.Text) It says expression is a value and can't be target of statement. What does that mean? Then how can I change the target?
View 2 Replies
Jun 27, 2011
Just a quick question my textbox1.text seems to get focus when I run the APP.how do I cancel any focus to any textbox?I just don't want to select it or anything when I work with it only when the user select or uses it.
View 1 Replies
Nov 15, 2010
what is the code for sending IP via textbox1.text and button1.text
View 9 Replies
May 25, 2012
Label1.text += textbox1.text doesn't work, say they is 0 in label1 and i enter 1 in the textbox1 it adds it to the label like this
0111111111111
But i need it like add up whatever is in textbox to whatever is in label1 This works
Label1.text += 1 but thats not what i need I got this to work once before, but i cant remember because its been long time ago.
View 4 Replies
Apr 30, 2009
In button1 Keyup I want to be able to make textbox1 skip a line.How would i do this. I tryed
Private Sub button1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles button1.KeyUp
If e.KeyCode = Keys.Enter Then
textbox1.text = vbnewline
End If
End Sub
I would also want to know how to make it when I push the button2 it will undo the letter I just did
Private Sub button2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles button2.KeyUp
If e.KeyCode = Keys.Back Then
textbox1.undo 'this will just undo the whole text I just did
End If
End Sub
View 1 Replies
Oct 15, 2011
A dialog with a textbox is reading a text file within the project like this
CODE:
That works fine, but how to save the edited text back to the file when I hit Save
View 4 Replies
Jan 24, 2011
When I'm coding:[quote]Form1.WebBrowser1.Document.Body.InnerText()[quote]I want to delete some text from the InnerText(). How Do I do that?
View 1 Replies
Nov 6, 2009
I'm trying to play around with combo boxes and trying to figure out how to navigate to a certain url in webbrowser1 depending on the text selected in combobox1.
VB
Imports System.Windows.Forms
Imports System.Net
Imports System.IO
[Code].....
View 3 Replies
Mar 13, 2010
I have the following code that has the webbrowser1.navige via textbox1.text lines of urls:
Public Class Form1
Dim index As Integer = 0
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim lines() As String = TextBox1.Lines
If index < lines.Count Then
WebBrowser1.Navigate(lines(index))
[Code]...
How do I get the webbrowser to loop back around to line 1 (the url at the top) when it has finished navigating to the last line of text/url?
View 4 Replies