Hi,i want to create a program in C# that when i type an address of web page in browser(IE) fisrt of all shows me a message when i confirm it then my browser shows it. my op is seven.
can anyone helps me?
thanks in advane.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 18, 2011, 11:31 PM
abc sharpPosted Dec 18, 2011, 9:35 PM
select property from right click of SHDocVm dll then you must change Embed interop types into false.
it shows me all of web address that i see.
but it has two problem when you open a new tab it dosn't work well, and if exist a internert explorer browser befor it doesn't work you know it opens seperatly.
Could you tell me how can i refuse an address when it want to show in browser? for example now i can see URL in browser i want my proram shows me a message box before the wesite be loaded in the browser and when i confirm messagebox browser(internet explorer) does show the web site.
abc sharpPosted Dec 18, 2011, 3:07 AM
Sam HobbsPosted Dec 18, 2011, 2:46 AM
abc sharpPosted Dec 18, 2011, 2:10 AM
Sam HobbsPosted Dec 18, 2011, 12:45 AM
abc sharpPosted Dec 17, 2011, 11:58 PM
Sam HobbsPosted Dec 17, 2011, 2:29 PM
A simpler solution would be to write a program that opens a IE window using the InternetExplorer class. You would then have the instance of the IE window and you could then handle its events. The following is a console window that shows doing that but you can do it in a form. To use the code, you must add a reference for shdocvw.dll.
{{{}{}{}}}abc sharpPosted Dec 17, 2011, 12:22 PM
Manoj Singh PanwarPosted Dec 17, 2011, 5:44 AM
If you really want to code this up, do mention the language you are coding and try to elaborate your question so that it could be answered well.
abc sharpPosted Dec 17, 2011, 2:40 AM
I saw also:
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx
and
http://stackoverflow.com/questions/226784/how-to-create-a-simple-proxy-in-c
but they aren't complete for me.
what's your suggestion?
Sam HobbsPosted Dec 16, 2011, 4:35 PM
I know that what you need to do is very clear to you, but there are many ways to interpret what you are saying. Note that a WebBrowser control does not have an adddress bar for typing in an address so it is not clear what you mean by "type an address of web page in browser".
abc sharpPosted Dec 16, 2011, 3:30 AM
thank you.
Mayur GujrathiPosted Dec 16, 2011, 3:17 AM