In VB.NET I made a web browser and I wanted there to be an image behind the web browser slightly peeking out. I put the image on after i put the web browser on the form and I cant get it to be behind the browser. Can anyone tell me how to do this?
right click the picturebox in the designer and select 'Sent To Back'
Alternatly, right click the webbrowser control an select 'Bring To Front'
Wouldn't it be simpler to edit the image to only have the part that is "peeking out" and place that on the form in the appropriate spot?
Related
I want to make a desktop item manager program using vb.net.
I hope to create a form there and use the menus etc. to make the desktop icons work.
You want to set the form to always be behind the other windows. Like a widget.
How to do this?
Unless I am missing a step, I have done the following:
Drag webbrowser control onto form (WebBrowser1)
Drag button onto form
For button click action I did
WebBrowser1.Navigate("http://www.google.com")
and I get "cannot display the page"
It does this with whatever URL I use, whether I put http first or not.
Any idea what could be causing this? Could it be some type of security restriction on my machine or network that prevents non-browsers from accessing the internet?
It's a security setting on my machine preventing it. Thanks all.
I making a spreed sheet to evaluate user experience of a web page. I am wondering, can I have the user open a workbook, have a form pop-up show a webpage in one portion and have questions in another portion. The webpage has to be active and not an image. If it is doable, can I be provided direction in terms of another post or website? Thank you.
It is possible. You should use the WebBrowser control in your Userform.
In the VBE, go to Tools, then Additional Controls. Enable Microsoft Web Browser.
A new icon in your Toolbox should show up. It's the WebBrowser control. Add it to your userform.
Code is up to you. Sample follows:
Private Sub UserForm_Initialize()
Me.WebBrowser1.Navigate "http://www.google.com"
End Sub
The above code navigates the control to Google when you start up the userform, like so:
Hope this helps.
Use the WebBrowser ActiveX control. See http://msdn.microsoft.com/en-us/library/aa752043(v=vs.85).aspx
I am opening a web site in a vb.net 2008 webbrowser control. I want when I open the 3rd page of the web site then after the page is loaded , control focus programmatic-ly by Triggering TAB keypresses automatically by my code . Please tell me the solution to shift the focus control ?
I don't know if I have understood your question right, but you could try the following,
Keep track of whether you are on the third page in your web-browser control. If you are, you can execute a JavaScript function, which changes the focus of the text-fields.
Page.ClientScript.RegisteredStartUpScript(GetTypeOf(), "function_change_tabs", script, True)
Let's say my browser goes to a page similar to this one below ..
Picture Is Here
On this page there is a hyper link called 'Click Here' .. when I click it, it opens another window with things in it.
How can I click this hyper link in vb.net automatically without me clicking on it with the mouse, and how do I open the window in a second web browser ?
We can assume that the first browser is called (WebBroswer1 ) and the second one is called (WebBrower2).
I know how to perform buttons clicks and do raise the 'OnClick' Events, but I don't know how to do it with a hyper links.
Please any help will be appreciated, I look forward for solutions.
If you have jquery available in your webpage you can do something like
Say you have Click Here
you can programatically trigger the click of that link by doing:
$("#webbrowser2").trigger("click");
HTH