-
Need help with Vb 10
Hi i am new to vb i am using vb10 and i want to make a webbrowser but i want the web browser to be able to block certain url's and unblock them
the url's are image/swf url's so all i want to do is load a website in my browser and be able to stop certain image/swf url's from loading then when i want able to unblock them can you please give me the code to do this or explain how i can do it thank you
i have the url's i want to block/unblock
let say the url was
http:/www.images.random.com/banner/238764283654853
i would want to block it with a check box but then if i want it back i can just uncheack the box
-
Re: Need help with Vb 10
Welcome to the forums. Please give your threads titles that match what you are asking for. We can guess you need help, as you are making a post. It helps people when searching for old posts that already answer the question you are about to ask.
To help answer your question, I will point you at google, you can get a good jist of what area you should code in by simple search terms, like 'vb.net webbrowser' which gave me this full explaination.
Once you have a webbrowser basicly working, you can have a crack yourself at stopping the user opening certain URLs, because you will be creating the buttons/controls that request the pages. If you want to stop certain elements within that page from loading, there are events that are fired that may allow this. I have seen examples of blocking popups, and there are navigation events. Might give you something to start with.
-
Re: Need help with Vb 10
ummm thats kinda along the lines i done the webbrower part but i don't want the user not be able to view it i want the webbrowser to block the url like i want the code for a block so the url won't load a.k.a ad blocker banner blocker but i want to make a custom one
-
Re: Need help with Vb 10
So blocking the whole URL or subparts? If its just the URL, then you already have a method to navigate I assume, thats where you would start checking the URL given to see if it contains the name of a site you would block.