Disable Right Click In A WebBrowser Inside VB6
well, im curious as to how you would disable the right click function from the webbrowser thats embedded inside ur vb6 application. cuz u cant set its properties to false for the menubar because it doesnt do ne thing. ne 1 have ne ideas?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Disable Right Click Menu Inside A Textbox
I want to get rid of the small menu (copy,paste,etc) inside a textbox. I know how to make my own menu (which is what I'm doing) but the normal menu pops up then when I click away from it I then see my custom menu... So I need to get rid of the normal one
Webbrowser Click Inside Frame?
I am trying to use the webbrowser1.document.links(0).click function on a webpage inside a microsoft webbrowser control, is there anyway to get it to click on a link inside of a frames page? Your response is appreciated, thanks
WebBrowser Inside An Activex
Just a bit of background on what I am trying to achieve:
I have created an ActiveX control that hosts a webbrowser control. The complicated part is that I need to load the ActiveX component again in a web page. So the structure becomes like:
Internet Explorer open page mypage.html -> mypage.html has <object> tag for the custom activex -> the custom activex hosts a webbrowser component inside it.
I had to do it this way as I want to open MS-word inside the web page to allow editing functionality to user and also allow user to upload save the modified file back onto server. Any better suggestion to achieve the same task are also welcome.
If am navigating the webbrowser control to another webpage as well which has a form in it (I tried "http://www.google.com/" as well). Even though I click on the submit button, no action is done on the form (i.e. no actual Post happening). The same concept works if I host the activex in a VB app form.
Thanks in advance.
Webbrowser: Need Help On Delays Inside The Loop
I have a webbrowser control that opens a website and automatically fill in the textboxes on the forms. I am done with that part but im having problems with the loop.
The data are stored in the database where i populate it using Msflexgrid. And i use two textboxes for ranges like process 1-5 or 10-20... etc coz i have more than 10,000 records.
I want to leave my computer to process it but for the sake of testing i put number ranges that is incorporated in my loop.
Dim x As Long ' loop counter
tempnum = CLng(txtFrom.Text)
For x = CLng(txtFrom.Text) To CLng(txtTo.Text)
' error on this part coz the above code is not yet completed
.Document.All("Firstname").Value = MSFlexGrid1.TextMatrix(tempnum, 1)
.Document.All("Lastname").Value = MSFlexGrid1.TextMatrix(tempnum, 2)
tempnum = tempnum + 1
I'm having problems with the click event coz it will not wait for the document to complete before firing the next command. Is there a workaround for this delay without moving the rest of the function to "WebBrowser1_DocumentComplete" event?
Webbrowser!(woth The Reading,joke Inside!)
i've been wondering,howcan you get a webbrowser to go to an url AND "come" from a specific url("referer")
What do you call a blonde that's in college?
(no offense to blondes ofcourse)
WebBrowser Inside Frame Goes Blank When Open A 2nd Pdf
We have an old vb6 app, one of its frame is embeded with MS InternetControl (shdocvw.dll). That webbrowser will be used to retrieve and display a series of pdf files.
This thing was broken a few days ago when they installed the XP SP2 patch to all user's PC.
When this frame shows up, it initially loads a blank.pdf, just like this: http://macarthur2.googlepages.com/sr1.GIF/sr1-full.jpg
Then, when it tries to open a 2nd pdf, things become weary -- it looks like this: http://macarthur2.googlepages.com/sr2.GIF
Notice that not only the displaying went blank, but also the AcrobatReader menu bar/buttons are all gone.
I just created a very simple test app in vb6 under XP SP2: a simple frame embeded with MS InternetControl, when frame loaded, display a blank.pdf; then click a button, supposed to load a second pdf, but it went blank too...
Seems that with XP SP2, the shdocvw.dll was upgraded to version 6.00.2900.2805 , which breaks this pdf-display ability.
Anybody else has the similiar experience?
Revoked -Trap URL Click Inside A Application
I am posting my old question again in a new thread cause it got back toooo far... sorry
I would like to know if any of you have tried this. I want to trap a url being clicked inside a html being displayed in my application. Like for example if the url being shown in the application is passing a text like ..
< a href="file:///d:/123.html?text=abc">click here</a>
On click of this url i want the my application displaying this html to capture the text that this url is trying to pass. Here this url is trying to pass a text "abc". I want the application to trap this text so that I can use this text to store the click actions and display it later in a listbox.
The HTML is being displayed in my application using internet control.
Can any one please help me in this ?
Button Click Inside Web Brower Control
I am a newbie seeking a method or piece of code that will enable me to click a "Submit" button on a webform appearing within a Web Browser control.
Any help would be greatly appreciated.
Html - How Does One 'view Source' Inside A Frame? I'M USING VB6 WEBBROWSER
I GUESS THE QUESTION IS... HOW DO I EXPOSE THE SOURCE FILE (HTML) USING VB6 AND A WEBBROWSER NAMED WB
Dim eCollection As IHTMLElementCollection Dim uElement As HTMLUnknownElement Set fDoc = wb.Document Set eCollection = fDoc.documentElement.All For Each uElement In eCollection If UTRIM(TypeName(uElement)) = "HTMLFRAMEELEMENT" Then Debug.Print uElement.Name Debug.Print uElement.outerhtml Debug.Print uElement.InnerHtml End If Next
BUT THIS DOESN'T WORK! THE OUTPUT FOR ONE OF THE FRAMES (I'M INTERESTED IN IS IN FRMMAIN). THIS CODE OUTPUTS THE FOLLOWING...
frmMain<FRAME name=frmMain marginWidth=0 frameSpacing=0 marginHeight=0 src="Home.asp?root=1">
WHY ARE THE OUTPUTS SO DIFFERENT? THANK YOU.
DISABLE RIGHT CLICK ??
CAN PLEASE HELP ME BY TELLING ME HOW TO DISABLE THE RIGHT CLICK FROM A "FLASH MOVIE" COMPLETLY. AND I MEAN "NO CONTENT" ON RIGHT CLICK, NOT EVEN "ABOUT MACROMEDIA FLASH PLAYER". someone plz help
thanx in advance
Disable Right Click
Does anyone know that how should we disable right click in an HTML page?
I don't want that messagebox too!
I just want to disable right click.
Do you know the HTML code of it?
Disable Right Click
I'm trying to dissable right click with a webbrowser control and I found some code that works, but doesn't if the mouse is over images (focus problem I presume).
So anyone knows how I could disable right click, and especially only with webbrowser ?
Or what the webbrowser's class name would be?
Disable Right Click
Does anybody know how to disable the rightclick on textbox or on other objects?
Disable Right Click In IE
Anyone know how to disable the right click function in the Browser window and open up my own menu. I know how to open up popup menus thats not the problem.
Help! Disable Right-click On...
How do I disable all right-clicks on my Webbrowser control (the one from microsoft) ? I want to disable all right-clicks so they cannot view the source code or properties of the URL they are at. Thank you!
P.S. Please e-mail me if you can!
Disable Right Click
Does anybody have an idea on how to disable the right click function of windows on startup?
I am trying to write a security package and one of the needs is to disable the user from being able to right click on any item to bring up menus and shutdown options.
Thanks in advance!
Anyone know if it is possible to call a function in my vb code from inside a webbrowser control?
VB code in form:
parent.vbFunctionInParentForm("hello from browser!")
(where 'parent' would be something else I guess?)
If the is no way to do it, I'd like to comunicate somehow to my forms vb code from the webbrowser, eg. if I click on a 'td' html tag for example, then I could pass the bgColor of the certain table cell to my form.
Disable NewWindow Of IE (WebBrowser) In VB6
I have a form with IE (WebBrowser).
If we press CONTROL + N keys, the same web page is opened in a new window in Micorosft Inernet Explorer out of my project.
I want to disable to open this new window of the web page when a user press CONTROL + N keys.
ie. user could not open or browse this web page out of my project openning new window by CONTROL + N keys..
Any idea please advice
Disable And Flatscrollbar Webbrowser
I need you to help me out please because I couldn't find a code which disable the webbrowser context menu as without the tick box i just need the code. Also I need to have a flatscrollbar on my web browser but I have differculty to find one but there might be nothing in it??
If I should get the code to make the Vertical scrollbar to go flat, help would appreciate thanks
Disable Ctrl+n In Webbrowser
Can we disable the opening of a new instance of IE when ctrl+n is pressed on the webbrowser control?
I want to disable it since i don't want to show the user the navigation paths (urls) i m navigating to for various oprations...
Can it be done?
I ahve disabled the right click on the browser....but couldn't find a way to disable ctrl+n...
Disable Cookies For Webbrowser
Is there a simple way to disable cookies for pages loaded inside the vb webbrowser control, while not affecting any other instances of explorer? Or do I just have to do it through the registry before I load the webbrowser controls? I know there are easy ways to do this in ASP, if anyone has any insight it would be appreciated...
Disable Right Mouse Click
I have a game menu that i only wanted to work when you use the left mouse button. Is there a simple way to disable the right mouse button click?
Disable Right Click In Web Browser
Is there any easy way to disable right click on the web browser control so it wont show that 'Open Link, Open Link in new Window, Save Target As..., etc' menu.
Thanks for any help.
Disable Right Click Menu
Getting pretty close to my report working correctly. Thanks everyone for all of the help.
Last question, hopefully...
Using Excel2000. I have created a report that performs some calculations with a right click of the mouse. What is the code to disable the right click menu? The procedure works, but you have to Esc out of the menu with every right click. Getts pretty annoying.
Combo Box Disable Right Click
yo disable user right click on a text box
why this code just work on textbox ?
and does not work on combo box
I need it to work on combo box too
but how ?
Disable Right Click On A Form?
i've got a series of flexgrids and datagrids. i need to disable right click for these grids, is there a way to do this? even disabling rigght click on the form entirely would be ok.
what would be better is if i could modify the menu that gets displayed on right click so that it only lets users copy but not paste or delete.