Web Browser Control Scroll Bars And Right Click Menu?
A) Is it possible to disable the horizontal scrollbar in a web browser control (but keep the vertical one)?
B) Also, is it possible to disable the right click menu in a web browser control?
Thanks!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Browser Box Scroll Bars - Them Off
I am using a small sized browser box in my app and I want to hide the scrollbars. I have sized the content so the scrollbars are not necessary. But I can not figure out how to turn them off.
In short I NEED YOUR HELP!!!!
Thanks-
<a href="mailto:SlamDunk_46@hotmail....otmail.com</a>
Web Browser Scroll Bars
Hi,
Anyone know how to get rid of the scrollbars on a web browser? Or know of any other way to load a web page and have no scroll bars?
How To Disable The Right Click Menu Option In Web Browser Control ??
I am using the web browser control in my VB application to display a table of data and a graph, I would like to disable the menu that appears when the control is right clicked at run time, the same menu that appears in IE, is it possible to do this ?? and how
thanks
arunb
Adding A Custom Right Click Item To The Web Browser Control's Pop Up Menu In VB6
Somebody else asked this same question regarding .net but I'm using VB6 and the Browser control so hopefully someone can give me an answer as well.
Does anyone know how to create a custom right click menu item to the web browser control in VB6? What I want to do is add a menu option that is enabled when a user right-clicks on a link in the browser that starts with a common URL string. For example, let's say I want this menu item to be enabled ONLY when the link goes to a URL starting with http://www.vbcity.com/forums/ so it would be enabled if one right-clicked on a link to http://www.vbcity.com/forums/post.asp?method=reply&tid=52321 but not to http://www.vbcity.com. Can anyone tell me how to do this?
Thanks,
Dan
CONTROL WITH SCROLL BARS
I need a picture o images control, with scrooll bars (both, horizontal, vertical).
This is the problem; the archive jpeg, gif, bmp or scanned images is more large than width control or height control.
Thanks
Falcerv
Control The Scroll Bars In An AxWebBrowser
Is it possible to control Scroll bars on an axwebbrowser, or is it just possible to get the values of the scroll bar location? Maybe this is it:
Code:
axwebbrowser1.Location.x
'and
axwebbrowser1.Location.y '?????
Webbrowser Control Scroll Bars
Is it possible to link to web browser scroll bars together?
i.e. I have 2 VERY similar documents loaded, one into each web control. Is it possible to have either one 'follow' the scroll bar of the one i am using, so that when i am compairing the 2 side by side, i am in the same location on each?
Thanks in advance.
Scroll Bars In ListBox Control !
Hai,
How can i set both vertical and horizontal scroll bars in a listbox control.
There isn't any property during design time. However the horizontal scroll bars works as the number of items increases but not the vertical scroll bar.
Any idea / code highly appreciated ...,
ashky.
Scroll Bars In ActiveX Control
I´ve created an ActiveX Control in VB which I am trying to implement in another application. This control displays dsiplys some information extracted from the database during the runtime. While testing the control with Internet Explorer, the vertical scroll bar appears automatically, if the displayed information does not match the size of the ActiveX control. Though if I implement the control in the application (Siebel CallCenter 2000) the scroll bars are not available, so only a part of the information is available to the user. I tryed to enable the scroll bars through the application, but it did not work.
Thanks for your help
Option Group Control With Scroll Bars?
I've noticed in some search forms utilizing an alphabutton rrecord filtering technique that the option group control with the alpha buttons provides for horizontal scroll controls. I have a form with limited space and wanted to be able to do this if possibleI. have searched my resources, and experimented to no avail. Can it be done??
Adding Scroll Bars To Picture Box Control
I have a picture box control that is the source of a dockable window within some mapping software. Basically, when I create my dockable window, I pass the hWnd of Picture1. If the user resizes the dockable window, I want scroll bars to show up so the user can see all the controls that are housed by the picture box control.
I've got this code for a form resize. I had previously passed the hWnd of this form to the dockable window, and everything is peachy, but I need to use the hWnd of the picture box instead of the form:
Code:
Private Sub Form1_Resize()
HScroll1.Move 0, ScaleHeight - SB_HEIGHT, ScaleWidth - SB_WIDTH, SB_HEIGHT
VScroll1.Move ScaleWidth - SB_WIDTH, 0, SB_WIDTH, ScaleHeight - SB_HEIGHT
Command1.Move ScaleWidth - SB_WIDTH, ScaleHeight - SB_HEIGHT, SB_WIDTH, SB_HEIGHT
HScroll1.ZOrder
VScroll1.ZOrder
Command1.ZOrder
HScroll1.SmallChange = ScaleX(2, vbPixels, vbTwips)
VScroll1.SmallChange = ScaleY(2, vbPixels, vbTwips)
HScroll1.LargeChange = HScroll1.SmallChange * 60
VScroll1.LargeChange = VScroll1.SmallChange * 60
If ScaleWidth < Picture1.Width + SB_WIDTH Then
HScroll1.Visible = True
HScroll1.Max = Picture1.Width + SB_WIDTH - ScaleWidth
Else
HScroll1.Value = 0
HScroll1.Visible = False
End If
If ScaleHeight < Picture1.Height + SB_HEIGHT Then
VScroll1.Visible = True
VScroll1.Max = Picture1.Height + SB_HEIGHT - ScaleHeight
Else
VScroll1.Value = 1
VScroll1.Visible = False
End If
Command1.Visible = (HScroll1.Visible Or VScroll1.Visible)
MoveCanvas
End Sub
Private Sub VScroll1_Change()
MoveCanvas
End Sub
Private Sub MoveCanvas()
Picture1.Move -HScroll1.Value, -VScroll1.Value
End Sub
Private Sub HScroll1_Change()
MoveCanvas
End Sub
How do I change this to work for my picture box?
Control Array In Container To Get Scroll Bars?
Hey Chaps,
Any ideas on the control I need:
I want to place a load of labels one after the next vertically on a form to represent items from a database but I dont want to extend the form ? I thought of putting the labels inside a picturebox but it doesn't have scroll bars ?
Is there generic control in VB6 that I can use ?
Thanks
Chubby.
Remove Scroll Bars From The Webbrowser Control
I am using the web browser control to display a gif image.
As the image is a fixed size there is no need to display the horizontal and vertical scroll bars.
Is it possible to remove the scroll bars surrounding the image?
I noticed the right vertical scroll bar displays but seems to be greyed out - i dont want it to appear at all.
thanx
WebBrowser Control - Removing Scroll Bars
Hi,
Im using the WebBrowser control, But, it keeps displaying the Vertical Scroll bar, and i cant work out how to get rid of it.
If you know how to remove the Vertical Scroll bar, please reply, Its kinda urgent, thanks
Scroll Bars On Image (not On Viewing Control)
How can I view a very large graphics image file and assign scroll bars and sizing/stretching to the image, without having scroll bars on the sides of the viewing control?
Is there an image file format that will automatically provide a scroll bar on the image itself, independent of the viewing control?
Scroll Bars On Image (not On Viewing Control)
How can I view a very large graphics image file and assign scroll bars and sizing/stretching to the image, without having scroll bars on the sides of the viewing control?
Is there an image file format that will automatically provide a scroll bar on the image itself, independent of the viewing control?
Context Menu(right Click) Over A Vb Web Browser?
im pritty sure this can be done but unsure how
i tryed
Sub WebBrowser1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then PopupMenu mnuWeb
End Sub then in the menu editor i had the context menu that i want to call. but all this does is just call ie context menu. any help would be great thanks
----
p.s does any one no where i can download some good web browser icons. i.e for back/forward/stop/refresh etc
Right Click Menu On An Embedded Web Browser
is there any way to override the right click menu in an embedded web browser? I want to change the menu so that open in new window does something different
Public Sub BrowserWindow_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles BrowserWindow.MouseDown
gives an error at compile time
An unhandled exception of type 'System.NotSupportedException' occurred in system.windows.forms.dll
Additional information: The MouseDown event is not valid on this ActiveX control.
am i doing something wrong?
J
Menu Bars In An Active X Control?
Hi Folks,
Is it possible to have an OCX in VB6, which contains both another imbedded OCX (MapInfo MapX) and a menu bar at the top?
Thanks in advance for any help.
Kind Regards
Alan Crawford
Sx3
How Can I Scroll A Web Browser Control In VB?
I am creating a chat utility in VB6 as part of a larger project and was using a RichText box which worked just fine until I wanted to expand the functionality of the chat. What I want to do now is use the WebBrowser control to display the chat messages so that I can include pictures and hyperlinks.
The problem is that when I append the next line of text the browser control does not scroll down to the last line automatically like the RichText box does.
I found a simple API call (SendMessage) it works just great with a text box, but I can’t seem to make it work with the browser control.
Does anybody know of a way that may allow me to programmatically scroll the Microsoft WebBrowser control?
Many thanks.
Removing Scroll Bar From Web Browser Control
I'm creating a mini-browser as part of an application. I need to remove the horizontal and vertical scroll bars from the window.
I tried using API code that work with a list box to no avail.
Has anyone acheived this using the API? Its got a handle so it should be do-able.
any comments much appreciated.
cheers
j
Web Browser Control Doesn't Have SCROLL Property
I am having a small problem with the WebBrowser control.
I wish to turn off the scroll bars, and therefore am testing the object to see if it has a scroll property.
Here is a part of the DocumentComplete Event handler;
Code:
If (pDisp Is htmlView.object) Then
Pause (1000)
DoEvents
If Not (htmlView.object Is Nothing) Then
If Not (htmlView.Document Is Nothing) Then
If Not (htmlView.Document.body Is Nothing) Then
If TypeName(htmlView.Document.body.Scroll) = "String" Then
htmlView.Document.body.Scroll = "no"
End If
End If
End If
End If
It turns out that sometimes there is a scroll property and sometimes there isn't.
When there is, the above code works fine. But where there isn't, I get "Error 438 : object doesn't support this property or method." and the program stops on the line marked in red.
Is there a way of testing to see if the Scroll property (or any property/method for that matter) exists in the current object structure without using an error trap?
Cheers,
Nap
Scroll A Web Browser Control To The End Of The Document? [Solved]
Hey ya, i know i can scroll a web browser document to the end by using:
VB Code:
brwMessage.SetFocusSendKeys "^{END}"
BUT: is there a way to do this WITHOUT having to set focus onto the browser?, because i really dont want the focus to b lost on other forms / applications when this happens....
ne how, thanks
Wayne
How To Detect A Click On Web Browser Control?
hi everybody,
one new problem i couldn't solved after trying really hard.. i want to detect a click on my web browser control. when it detect that the user have click on the page, then it will let the user enter the main program. the code i think of is below.. but they dont work. actually it work but it enable the button as soon as the site load on the browser..
Code:
Private Sub Form_Load()
WebBrowser1.Navigate ("http://www.website.com/")
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
enterButton.Enabled = True
End Sub
so please help me....
Web Browser Control! How To Click An Image.
i want to click a button on an html page that is in the form of a .gif image using a vb application.
i know how to click html buttons using this code
VB Code:
WebBrowser1.Document.All.Item("continueButton").Click
but not sure how to do a .gif
How To Scroll Through A Frame Using Scroll Bars?
hey guys,
I am new here...can anyone tell me how to program a scroll bar in VB 6 so that it will scroll down a frame within the window???
i want it to be similar to a webpage that is longer than the window...can anyone help plz?
icq me 13978231 if you can
i would like a reply asap...thank you once again
Web Browser Control..or..Right Click..View Source..File Save
HI.
I am using a web browser control to access the Internet. It pulls up web pages just fine, but I need to save the HTML source code of the displayed page from my VB project.
Option 1
Does anyone know how to do this using the web browser control?
Option 2
The same thing can be accomplished by right clicking on the web page, selecting View Source and then saving the file. How do I get VB to automate these steps?
Option 3
A way to do this that I haven't thought of yet! (using the Internet Transfer Control is not an option due to security issues.)
Of course, the first option is the better, more efficient choice. I just can't figure out how to do it!
I would appreciate it if someone could shed light (and code..if available) on either of the options above.
Thanks in advance.
Chris
Click A Link, Button, Or Edit Input Field In Browser Control?
I have no experience with the browser control, nor do I with the Inet control. Is there a way to insert text into an input field of a webpage, click on a specific link, or click a "submit" button?
For example, if I wanted to log someone into a site based on info they provided in a text box?
WebBrowser Control, Right Click Menu
Hi! I use a WebBrowser control. I use WebBrowser.Navigate to display a web page. The usual IE right click menu is displayed when I right click over the page. Can I disable the right click menu directly from Visual Basic? I'm very grateful for comments!
How To Remove The Right Click Menu From WebBrowser Control?
Hella proggers!
I hope one of you could help me with my prob:
How to edit the WebBrowser control so I can remove the right click menu?
I tried to add to References the MS HTML Object Library [MSHTML.TLB],
But I don't know how to turn it on design/edit mode.
I need this so I could view text that contains images(like emoticons ) and links for my ActiveX lil' chat program, and I don't want ppl to see the "View Source" or "Save Picture As.." or "Download with DAP" etc...
Any other alternatives for my program are welcome too..
Thanx!
Adding A Right-click Menu To A TabStrip Control
Hi!
On my form, I have a TabStrip control, and I'd like to know how I would go about adding right-click support to it.
What I'd like to do is when a user (right) clicks on the tab, instead of switching to it (I'll leave that to left-click), it will show a menu with options specific to that tab. I can pop up the menu just fine, but I'm having trouble determining what tab is at the x,y coordinates supplied by the MouseDown event. Perhaps there is a method similar to the HitTest method for ListViews? I'd be grateful for any help you might be able to offer.
Thanks!
Zoinky
(Added: Note that the Tab may not be selected, so the .SelectedItem can't be used.)
Right-Click Control Menu Doesn't Appear For MDI Form
hi,
In my application i have a MDI Form. My problem is that if this form is in maximized state the taskbar right click menu doesn't appear. And if it is in minimized state then it appears.
Why doesn't it behave like a normal window which has its menu always active?
best regards,
Fundoo
Scroll Bars...
Hey, just wondering whether it's possible to change the scroll bar colour in VB 6 and if so the code...im a beginner Thanks...
Scroll Bars???
attached is the sample screen i want to integrate with my projects, but im still a newbie in vb6 and i dont know what component should i use to create a screen just like my attachment, a screen where you can input data in a number of textboxes with scrollbars,thanks in advance..
|