I am writing as if statement that when I click the button to access to google site and when the page fully loaded then show the messagebox. Here it the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://www.google.com")
I have trouble of writing the select case statement. I am trying to select the first case to change the labels text and if I select the case again then show up the messagebox.
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Select Case test Case test Label1.Text = "test"
[code]....
When I selected the button which the labels text have changed and I have selected the button again, but the messagebox doesn't appear on the screen.
I have Visual Basic 2010, can you tell me how I could simplify this code without using the last IF statement? In other words, have console.beep when form2 comes up, but with out adding the extra line?What would an easier way to write this be? I mean instead of writing the separate if statement for the console.beep?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "valentines" And TextBox2.Text = "day" Then Form2.Show() Else MsgBox("That's Not It Theresa!") If Form2.Focus = True Then Console.Beep() End Sub
I am writing the code as on if statement that if the html class has strings called "<a id=""rowTitle1""(.*?)</a>" then do something. In what property that come after pattern that I could check the string whether if it valid or not??
I am a new visual basic programmer. I have found that with Chrome I can press CTRL-+ and the screen will zoom in and CTRL - and the screen will zoom out. I have not figured out how to do this with webbrowser1. Is there something I can do, such as:
I want to make a Menustrip button/command to,Refresh WebBrowser1 5 times.I tried this.
Private Sub ToolStripMenuItem14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripMenuItem14.Click WebBrowser1.Refresh()
How can I prevent pop-ups while using WebBrowser1? If possible, I would like the url to open within the WebBrowser - not in a new internet explorer browser window.
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.
and when i click on the button and go to the site, then i can't send messages from the site... (When I click on send this messages,nothing happens)The problem is javascript , when you turn javascript off in your main browser like ie 8 or firefox then it becomes the same problem... how i can put javascript in webbrowser1 on or something?so I can click on the "send this messages" button... ?
I use to remove wb1 at some point after work Is done
WebBrowser1.Dispose() and Dim WebBrowser1 As New WebBrowser Controls.Add(WebBrowser1) WebBrowser1.BringToFront()
[code]....
p.s the reason I'm doing it because even if you delete cookies, index.dat will have cookies saved for the current wb1 and won't be deleted only if you reopen the app.
I made the typical web browser, but when I click on some links instead of it opening in my program, it opens up IE. How can I simply make my program the default web browser to use?
I'm having hard time to get a captcha to picturebox1 using picturebox1.load because it creates a new request or something I dunno and the captcha images is not the same as i see over webbrowser1. so what I want to be able to do is use the same webbrowser1 where i see the captcha and using this webbrowser to grab the captcha image using picturebox1.load or save it to hard drive and load it after, how can I do that? when i go to captcha SRC with the current webbrowser1 I see the correct captcha image but if there is another browser it will mess it up (Cookies?)how can I save or load the captcha with same webbrowser1 to keep the cookies so i can see correct captcha image?
to send word's into it for a game but when i go click something else it type's the word's in that is there a way that i can make it only send the TextBox6.Text data to webbrowser1 ?
I have a browser in my form- after using the WebBrowser1.Navigate(url) method to kick the browser off, I'll click a link in the form browser to surf through the intertubes, but the webbrowser1.Url property remains on the initial page. So how do I get the webbrowser1.url to update when I move to another page in the browser?
how to cause it so that my program will not proceed while a web page is loading. For example, if I use this:
webbrowser1.navigate(www.amazon.com")
sometimes it will have finished loading the webpage before the program proceeds. Other times, even if it says it is done, it is not done and it causes my program to crash.
how I can cause my program to stop and wait until it is sure the webbrowser has completed loading?