Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




WebBrowser Control && Popup Menu


I'm looking to show a custom menu when the user right clicks in the WebBrowser area, but there is no Mouse Events built into the Control. Anyone know what I would do to show a popupmenu ?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Disable Popup Menu In The WebBrowser Control
Yeah,.. you could disable the right click..

check this post on vbforum:
http://forums.vb-world.net/showthrea...INTAPI+disable

Webbrowser Object, Disable The Right Click Popup Menu
How to disable the right click popup menu , i dont want people stealing my info and all :S so i really need this

Webbrowser Control And Popup Ads
Anyone know how to prevent popup ads? But allow new windows if a user clicks a link that causes it?

Mike

IE Popup From WebBrowser Control
Hi,

I have a form with a WebBrowser control (Visual Basic 2005) and I noticed that some popups ads can get through integrated IE anti popup. I also put a "e.cancel" statement on the NewWindow Event. Most of unwanted popups are blocked but some still appear!

So I started to look into API stuff in order to block those pop windows. I learnt how to list all windows and child windows, processes or handles etc... I also managed to catch the event when any window is created with global hook, BUT I can't figure out how to determine which process has created which window when that it doesn't have any parent or owner, don't know even if it's possible .

Concerning IE popups, they don't seem to be attached to any proccess or parent window but the shell process, as if the user had launched IE independently. What I mean is that I can't determine if that Intenet Explorer Window comes from my application's WebBrowser or from somewhere else. Is there a way to know ?? I'm a bit confused about that.

thanks
 

Popup Windows In WebBrowser Control?
Hey, I'm making an MDI, IE-based web browser (the world still doesn't have one look for it on ZDNet once i get it finished) using the WebBrowser control and I have a quesiton...

When the user goes to a website and the site tries to make a popup window, I figured out some code to prevent Internet Explorer from making its own pop-up window and to instead copy the web browser form and set the URL to the URL of the pop-up window. As shown here:

Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim F As New Form1
F.Show
Set ppDisp = F.WebBrowser1.object
End Sub

However, I can't figure out how to set the width/height of the new form to the width/height of what the IE window would normally be. Does anyone know how to do this? It would be greatly appreciated.

Popup Screens In WebBrowser Control
I am using the WebBrowser control and would like to know how to avoid popup SCREENS. Or I kill them when they appear, or they doesn`t appear at all. Both would be fine

Any help?

Popup Menu In ListView Control
i do


Private Sub Listview_Click()

if right_button_was_pressed then
PopopMenu mnuBlah

End Sub


mnuBlah pops up like expected ... but this popup menu is context sensitive (certain sub-menus are disabled depending on which ListView.Column user clicks).

Problem is when the menu pops up and WHILE it is displayed - the user right-clicks on ANOTHER part of the list, the menu will not disappear - like for example when u click on your desktop.

While popup menu is SHOWN , How do i:
detect new click in a different location of the ListView
make the popup menu disappear
popup again at new location (thus the new menu will have the correct context sensitive menues disabled, based on subitem clicked)

Listview Control And Popup Menu
How can I set the selecteditem property to a node in a treeview control when I right-click on the node. I need to do this before I call the popmenu so I can take action on the desired node.

Thanks

Different Labels To Control Different Forms With Popup Menu
Hi All,

I have 3 labels named Label2, Label3 and Label4 located on the form1.

I wanted to used popup menu right click on these labels and load different forms. Let say label 2 to form2, Label3 to form3 and Label4 to Form4 and so on.....

Here is my code...

Code:
Private Sub Label2_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = vbRightButton Then
PopupMenu mnuPty
End If
End Sub

Private Sub Label3_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = vbRightButton Then
PopupMenu mnuPty
End If
End Sub

Private Sub Label4_MouseDown(Button As Integer, Shift As Integer, x As Single, y As
Single)
If Button = vbRightButton Then
PopupMenu mnuPty
End If
End Sub

Private Sub mnuPro_Click(Index As Integer)
???????????????
End Sub

Begin VB.Menu mnuPty 'Main
Caption = "&Property"
Visible = 0 'False
Begin VB.Menu mnuPro 'Sub menu
Caption = "&Properties"
I need to use only one sub menu mnuPro (caption named "Properties") to load different forms....of course forms should show respectively with labels ..

If I do right click and trigger the "Properties" on the lable2, I wanted to show form2.... same thing Label3 >> Properties>>and load form3 ......

Please advise... how should I write this type of tricky logic code...

khtoo

How To Get Index Of A Control, In A Popup Of Context Menu
I have add a popup to "text" context menu. In the popup group, there are 2 buttons in it.

Like this:

cut
copy
paste
-----
font
paragraph
bullet and numbering
------
Hyperlink
-----
xxxxxx
-----
my group ------ button 1
|__ button 2


I can use

Code:
pos = Application.CommandBars("text").Controls("my group").Index
to get the index of this popup group. However, I can't use

Code:
pos = Application.CommandBars("text").Controls("button 1").Index
to get the index of the button inside the group.

How can I get the index of the button then? Thx!

Popup Menu For Rich Text Box Control
Hi,
I am using a rich text box control and a normal text box control. I am setting the AutoVerbMenu for the rich text box control to true so that I can see the pop up menu.
Now when I am running my application on a German Operating System, the popup menu for the text box is displayed in German while the popup menu for the rich text box is displayed in English.
Any help would be appreciated.

VBAccelerator Popup Menu Control In WinXP
Has anyone tryed using the vbaccelerator.com popup menu tool in Windows XP? If you have, you'll notice that the icons in created menus no longer work. Has anyone been able to track down why, and if so, what might fix them?

Determing The Control Selected With A Popup Menu
Here's the scoop:

I have six controls on my form - three text boxes and
three label boxes. I also have a menu defined and
call it as a popup menu when the user _LEFT clicks_
on the textboxes and _RIGHT clicks_ on the label
boxes. It's an early lab for a client/server class.
The problem is - when a user selects a choice on the
popup menu, I need to know what control he/she just
clicked on to bring up the popup menu in the first place.
This way I will only affect the textboxes or the
labels but not both. Since labels cannot get
focus, the textboxes are always the "active control"
so TypeOf(form.ActiveControl) doesn't work in my case.
Any suggestions? I can be more specific if necessary.

Thanks!!!!

-K. L. Aelspear

Hiding The Popup Menu Of A Internet-explorer-Control
I tried this as discribed for textboxes, but

a) this ie-control seems not to have a .hwnd
b) i can still use the windows-key for this.

How Can I Disable The Default Popup R-Click Menu On A TextBox Control???
How can i disable the default R-click Popup Menu on a Textbox control...
or How to show my own Popup Menu instead of that default Popup Menu when R-clicked a Textbox control...thanks for any reply...

Quickie Popup Menu - TextBox Popup Inhibit
I did a quick popup menu (a four item listbox) for a stand-alone form
(no MDI parent). I want it to respond to a right-click, but it gets
overlaid by the Textbox popup menu.

How can I inhibit the Textbox popup?

Thanks,
John

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!

No Menu Bar Displayed In WebBrowser Control
Hi,
When I try to set the property WebBrowser1.MenuBar = True or WebBrowser1.StatusBar = True, and then navigating to any site, the site is opened and displayed properly but the Menubar and statusbar is not displayed.

So pleaze help me find a solution for this.

thanks and regards,

Gautam

 <<<Creativity gives a New Idea and an Idea gives Wisdom>>>

Clicking A Drop Down Menu (webbrowser Control)
Alright, i've been looking on these forums and i seem a couple examples but it dident work for what i was trying to do...basically i have a drop down menu im trying to click through the web browser control..



Code:
<form action=traindog.php method='post'>
<input type='hidden' name ='dog' value='1071147'>
<input type='radio' name ='train_type' value=''>Clear<br><select name='train_type'>
<option value=''>More Activities... <option value=32>Teach Name<option value=33>Sit<option value=34>Groom<option value=35>Play (rough house)<option value=36>Play (friendly)<option value=37>Fetch<option value=38>Object Identification<option value=39>Hierarchy<option value=41>Retrieve<option value=42>Tracking<option value=43>Good dog Bad dog<option value=45>Catch<option value=46>Herding<option value=47>Potty Train<option value=49>Swimming<option value=50>Wearing a harness<option value=51>Behavior<option value=53>Chase<option value=54>Search & Find<option value=55>Patience<option value=57>Obsticles I: Jumps & Tunnels<option value=58>Pulling<option value=59>Advanced Obedience<option value=61>Obsticles II: Weave Poles & Hoop Jump<option value=62>Advanced Tasks<option value=63>Obsticles III: See-Saw, Dog Walk & Aframe<option value=64>condition</select>


<input type='submit' value='Train dog'></form>



There is a drop down menu with options in it and i would like to click one....

"<option value=34>" is the one i want to select but i cant figure out how to do it... any suggestions?

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!

[b]how To Disable Webbrowser Control's Shortcut Menu?[/b]
hi,
i'm using WebBrowser control in my application and i want to disable its shortcut menu.

i could not find any method or property of webbrowser control to do this.

any tip or help to do the task is welcome.
thanks in advance.


How Do I Disable The Right Click Menu In A Webbrowser Control
I would like to disable the right click menu that appears on the webbrowser control(which is the same as the IE browser) anyway in which i could do it.

Making A Popup Menu, Popup A Menu
Hi

I have a popupmenu that gets used extensivly in my app. On every menu item that is clicked, a new submenu should be shown, but i need to reuse that submenu over and over again on most of my menu items.

So what i thought was making another menu that will act as the submenu that needs to be shown, and calling


VB Code:
Private Sub mnuOpen_Click()   '-- Need this menu to popup another menu   Me.PopupMenu Me.mnuSubmenuEnd Sub


But that simply doesnt work


Any thoughts on how i can do this?

Thanks

Keep Popup Window In WebBrowser Control Instead Of A New Window?
When using the WebBrowser control, is it possible to cause popup windows to
appear within the WebBrowser control itself instead of a new window?

This is what I've written in the NewWindow2 event, but I can't figure out
how to get the popup to appear in the same browser window.

In this code the user is presented with "Yes", "No" or "Cancel". Yes allows
the popup to spawn a window, No should load the popup in the same window and
Cancel should just not show the popup at all.

....also, is it possible to determine the URL that the popup is trying to
load, so it can be included in the MsgBox prompt?

'
'New window is wanting to be created
'
Private Sub web_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim Resp As Long 'Holds users response

'Ask user what to do with popup window
Resp = MsgBox("Allow popup to open a new window?", vbYesNoCancel,
"Window Popup")

Select Case Resp
Case vbNo 'No, keep in same window
'Set Display object to our current web browser object (Doesn't
work)
Set ppDisp = web.object

Case vbYes 'Yes, let new window open

Case vbCancel 'Cancel, don't open popup window
Cancel = True
End Select
End Sub

How To Popup A Menu For The Menu Created By MenuEditor && Populated At Runtime On RCli
How to Popup a Menu for the Menu created by MenuEditor & populated at runtime, the Popup should be shown when the user right click the Menu.

Hi,

I need to show the PopuMenu for populated Menu, either its created by API as below or by MenuObject. The below
is the way i created the Menu through API based on the sample of ROB in this Forum.

The below is the code in the General Declaration Section in the Form.


VB Code:
Const MF_CHECKED = &H8&Const MF_APPEND = &H100&Const TPM_LEFTALIGN = &H0&Const MF_DISABLED = &H2&Const MF_GRAYED = &H1&Const MF_SEPARATOR = &H800&Const MF_STRING = &H0&Private Type POINTAPI    X As Long    Y As LongEnd TypePrivate Declare Function CreatePopupMenu Lib "user32" () As LongPrivate Declare Function TrackPopupMenu Lib "user32" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal X As Long, ByVal Y As Long, ByVal nReserved As Long, ByVal hwnd As Long, ByVal lprc As Any) As LongPrivate Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As LongPrivate Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As LongPrivate Declare Function DestroyMenu Lib "user32" (ByVal hMenu As Long) As LongPrivate Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As LongDim hMenu As Long Private Type MSG    hwnd As Long    message As Long    wParam As Long    lParam As Long    time As Long    pt As POINTAPIEnd Type


I am using a Grid control, that is populated at runtime with AreaName, In that GridControl's MouseUp Event, I
am loading the Equipment for the Cicked Area is populated and displayed in a Menu and shown to the user. By using
the below code. It works fine. All Equipments are added to the Menu created by the Menu Editor at runtime.


VB Code:
Private Sub JanfpSpr_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)    Dim CurSprVal As Variant    Dim DtVal As Variant    Dim oMenu As Menu    Dim rstSi As New ADODB.Recordset    Dim ShtType As String    Dim JanCritTyp As Variant        If Button = vbLeftButton Then        JanfpSpr.GetText 4, JanfpSpr.ActiveRow, JanCritTyp        JanfpSpr.GetText 1, JanfpSpr.ActiveRow, CurSprVal        JanfpSpr.GetText 3, JanfpSpr.ActiveRow, DtVal                ShtType = Mid(CurSprVal, Len(CurSprVal) - 4, Len(CurSprVal))        CurSprVal = Mid(CurSprVal, 1, Len(CurSprVal) - 9)                If JanCritTyp = "Area" Then                SQL = "select * from EquipMaster where ArName='" & Mid(CurSprVal, 7, Len(CurSprVal)) & "' And Nextti Between #" & DtVal & "# And #" & DtVal & "# And ShtTp='" & ShtType & "' order by ENo"                If rstSi.State = 1 Then rstSi.Close                rstSi.Open SQL, cnnNew, adOpenStatic, adLockReadOnly, adCmdText                Call UnloadMenuItems                mnuLstSubItms(0).Caption = Mid(CurSprVal, 7, Len(CurSprVal))                mnuLstSubItms(0).Enabled = False                            While Not rstSi.EOF                    Load mnuLstSubItms(mnuLstSubItms.Count + 1)                    mnuLstSubItms(mnuLstSubItms.UBound).Caption = rstSi.Fields("ENo")                    mnuLstSubItms(mnuLstSubItms.UBound).Enabled = True                    rstSi.MoveNext                Wend                mnuLstEqp.Enabled = True                Call PopupMenu(mnuInfo)        ElseIf JanCritTyp = "Equipment" Then               Call UnloadMenuItems               mnuLstEqp.Enabled = False               Call PopupMenu(mnuInfo)        End If    End If'    End IfEnd Sub

Just in the Above code I added the Equipment Names in the Menu, If the User Right Click any
1 of the Equipment from the Menu then i need to show a Popup Menu with Update,Report etc.
for this Popup from the Equipment I added the Below Code in Form_Load() and mnuLstSubItms_Click()


VB Code:
Private Sub Form_Load()    hMenu = CreatePopupMenu()    AppendMenu hMenu, MF_STRING, ByVal 0&, "&Update"        AppendMenu hMenu, MF_SEPARATOR, ByVal 0&, ByVal 0&        AppendMenu hMenu, MF_STRING, ByVal 0&, "&Delete"        AppendMenu hMenu, MF_SEPARATOR, ByVal 0&, ByVal 0&        AppendMenu hMenu, MF_STRING, ByVal 0&, "&Report"End Sub Private Sub mnuLstSubItms_Click(Index As Integer)    Dim pt As POINTAPI    GetCursorPos pt    TrackPopupMenu hMenu, TPM_LEFTALIGN, pt.X, pt.Y, 0, Me.hwnd, ByVal 0&End Sub


What happens for this code is, The Popup menu is Show, but as soon as this Popup Menu is shown
the existing PopuMenu disappears, i need both to be visible as we can see in Windows Menus

Requirements:

How to find which MouseButton is Clicked in the mnuLstSubItms_Click Event.
How to and where to write the Events for the PopupMenu created through API (for Menu Update,Report)
How to protect without the Menu disappears, when the user right click the Equipment.

As (Moderator) Rob said i posted here this issue in the New Thread. Hope any VBForums member
might have faced the same scenario. Kindly check this and reply me.

The picture of the Menus on runtime and design time are also attached here for your reference.

Thankyou,
Chock.

How To Popup A Menu For The Menu Created By MenuEditor && Populated At Runtime
How to Popup a Menu for the Menu created by MenuEditor & populated at runtime, the Popup should be shown when the user right click the Menu.

Hi,

I need to show the PopuMenu for populated Menu, either its created by API as below or by MenuObject. The below is the way i created the Menu through API based on a sample given in VBForums by Rob.

My Project Current status.
The below is the code in the General Declaration Section in the Form.

Code:

Const MF_CHECKED = &H8&
Const MF_APPEND = &H100&Const TPM_LEFTALIGN = &H0&
Const MF_DISABLED = &H2&
Const MF_GRAYED = &H1&
Const MF_SEPARATOR = &H800&Const MF_STRING = &H0&
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function CreatePopupMenu Lib "user32" () As Long
Private Declare Function TrackPopupMenu Lib "user32" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal X As Long, ByVal Y As Long, ByVal nReserved As Long, ByVal hwnd As Long, ByVal lprc As Any) As Long
Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long
Private Declare Function DestroyMenu Lib "user32" (ByVal hMenu As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Dim hMenu As Long

Private Type MSG
hwnd As Long
message As Long
wParam As Long
lParam As Long
time As Long
pt As POINTAPI
End Type

I am using a Grid control, that is populated at runtime with AreaName, In that GridControl's MouseUp Event, I am loading the Equipment for the Cicked Area is populated and displayed in a Menu and shown to the user. By using the below code. It works fine. All Equipments are added to the Menu created by the Menu Editor at runtime.

Code:

Private Sub JanfpSpr_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim CurSprVal As Variant
Dim DtVal As Variant
Dim oMenu As Menu
Dim rstSi As New ADODB.Recordset
Dim ShtType As String
Dim JanCritTyp As Variant

If Button = vbLeftButton Then
JanfpSpr.GetText 4, JanfpSpr.ActiveRow, JanCritTyp
JanfpSpr.GetText 1, JanfpSpr.ActiveRow, CurSprVal
JanfpSpr.GetText 3, JanfpSpr.ActiveRow, DtVal

ShtType = Mid(CurSprVal, Len(CurSprVal) - 4, Len(CurSprVal))
CurSprVal = Mid(CurSprVal, 1, Len(CurSprVal) - 9)

If JanCritTyp = "Area" Then
SQL = "select * from EquipMaster where ArName='" & Mid(CurSprVal, 7, Len(CurSprVal)) & "' And Nextti Between #" & DtVal & "# And #" & DtVal & "# And ShtTp='" & ShtType & "' order by ENo"
If rstSi.State = 1 Then rstSi.Close
rstSi.Open SQL, cnnNew, adOpenStatic, adLockReadOnly, adCmdText
Call UnloadMenuItems
mnuLstSubItms(0).Caption = Mid(CurSprVal, 7, Len(CurSprVal))
mnuLstSubItms(0).Enabled = False

While Not rstSi.EOF
Load mnuLstSubItms(mnuLstSubItms.Count + 1)
mnuLstSubItms(mnuLstSubItms.UBound).Caption = rstSi.Fields("ENo")
mnuLstSubItms(mnuLstSubItms.UBound).Enabled = True
rstSi.MoveNext
Wend
mnuLstEqp.Enabled = True
Call PopupMenu(mnuInfo)
ElseIf JanCritTyp = "Equipment" Then
Call UnloadMenuItems
mnuLstEqp.Enabled = False
Call PopupMenu(mnuInfo)
End If
End If
' End If
End Sub

Just in the Above code I added the Equipment Names in the Menu, If the User Right Click any 1 of the Equipment from the Menu then i need to show a Popup Menu with Update,Report etc. for this Popup from the Equipment I added the Below Code in Form_Load() and mnuLstSubItms_Click()

Code:

Private Sub Form_Load()
hMenu = CreatePopupMenu()
AppendMenu hMenu, MF_STRING, ByVal 0&, "&Update"
AppendMenu hMenu, MF_SEPARATOR, ByVal 0&, ByVal 0&
AppendMenu hMenu, MF_STRING, ByVal 0&, "&Delete"
AppendMenu hMenu, MF_SEPARATOR, ByVal 0&, ByVal 0&
AppendMenu hMenu, MF_STRING, ByVal 0&, "&Report"
End Sub

Private Sub mnuLstSubItms_Click(Index As Integer)
Dim pt As POINTAPI
GetCursorPos pt
TrackPopupMenu hMenu, TPM_LEFTALIGN, pt.X, pt.Y, 0, Me.hwnd, ByVal 0&
End Sub

What happens for this code is, The Popup menu is Show, but as soon as this Popup Menu is shown
the existing PopuMenu disappears, i need both to be visible as we can see in Windows Menus


Requirements:

How to find which MouseButton is Clicked in the mnuLstSubItms_Click Event.
How to and where to write the Events for the PopupMenu created through API (for Menu Update,Report)
How to protect without the Menu disappears, when the user right click the Equipment.

Hope any member here might have faced the same scenario. Kindly check this and reply me.

The picture of the Menus on runtime and design time are also attached here for your reference.

Thankyou,
Chock.

Popup Menu, Context Menu Dynamic Creation?
Hi everyone,

i used the google search and the forum search but i didnt find any suitable result.
What i want to do:
i want to display a popup menu which is dynamic created from an xml file. i read the xml file to my own private type structure and now i want to display a popup menu. the only, as i think very ugly way i found is sevpopup menu active x. the problem with that menu is, that in every way there is a space for icons in menu which i dont have and the other problem is that i want to copy and not to install the application.
Really important for me is that i can create submenus!

Thank you all for help!

buechse

How To Add A Menu Item To The Windows Explorer Popup Menu?
Hi,

I have a feeling that this is going to be an API question, but I thought I start with this forum first..

Basically, what I want to do is to create a little VB app which I can launch by using the popup menu in the Windows Explorer. When I right-click on a folder, I want to be able to launch my program.

Any examples and ideas on how to do this would be greatly appreciated..

Dan

Hide Menu Line When Creating Popup Menu
I have a program that I created a PopupMenu for so when the user does a right click - there are options they can select.

The question is :
In order to create the PopupMenu, I created a menu for my form and then made parent for the menu options disabled and not visible.
When the form is launched however there is a seperation line where a menu should be.
Is there a way to remove this ?

Thanks in advance,
Kflasph

In A Popup Menu Witch Menu Item Is Slected
How do I find out what menu item was clicked

str = popMenu.Name
Select Case str
Case "mCut"
MsgBox "cut"
Case "mPaste"
MsgBox "paste"
Case "mProperties"
MsgBox "pro"

End Select

Popup (right-click) Menu From Standard Menu
I've searched and searched and cannot find any information on how to get a pop-up menu to appear when you right-click on a standard menu item. A classic example of this is in Internet Explorer's Favorites menu. If you right-click on a favorite, a popup menu appears and you can rename, delete, etc. the highlighted favorite. In VB6, accessing a menu item does not appear to fire the MouseUp or MouseDown events. Any thoughts?

Coding A Popup Menu Instead Of Using Menu Editor :S
Ok this might sound wierd but i want to add pop up menus to my form without using the menu editor and without showing them in the form itself (only when i want them to pop up). I have a frameless form and as soon as i add menus the frame will be there again. and i hoped i could just program a menu that is also pretty editable of some sort

How Do I Design A Context Menu (Popup Menu) In VB?
Hi,

I want to design a popup menu for a form in VB. I already have a menu for the form. This menu is displayed below the title bar. When I try to use the Menu Editor, it only lets me edit this menu. I want to design a new menu which will popup like a context menu. How do I do this?

Any help would be greatly appreciated.

Popup Menu When There's Already A Menu Up Top &lt;/RESOLVED&gt;
I've previously added the code to get a Popup Menu on right-clicking a listbox, but that time it was the only menu on the form.

Is there a way to get two menus on my form or am I going to have to make another form and use it for the popup menu?

Webbrowser Popup
I have created a program opening a page, in my site but I have little problem because I have some popup (alert) in my pages. Is there a way to by pass the popup (alert) in my program.

What I want is that when the instruction executed the alert message from my site will not show...

Webbrowser Popup Problems
I'm using a webbrowser to run in the background of my program and click links for people. I got the program to block popups. But certain pages that it visits have an iframe with a download link. Everytime it visits that page the download link pops up and asks me if i want to download a program. The link is inside of an Iframe on the page. Is there anyway to block downloads from popping up or simply block specific links? Thanks for your time.

How To Block Popup In WebBrowser
I have created a form. There is a WebBrowser in the form. I have set the WebBrowser to visit a site. However, whenever it visit that site, a new popup window always comes out. Is there anyway to block the popup????

Thx!

Popup Windows In WEBBrowser Tool
good morning
how to ban popup windows from apparition

How Would I Close A Popup Window.. With Webbrowser.
how could close popup window using ? i dont know how i would close the window before it popup. am i on the right track?


Private Sub ClickBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
BlockedPopups = BlockedPopups + 1
Text3.Text = BlockedPopups
?????
Exit Sub
End Sub

WebBrowser, Killing Popup Commercial Windows
hello!
i am using webbrowser, ms internet controls, schdocwv.dll

when i navigate to web page, on one or another web site, then popup window apperas with commercials and so on,... how to kill those popups windows? what are the ways ?

thank you!

How To Get Rid Of The Popup Script Error Messages In A Webbrowser?
anyone know how to avoid these from showing?

Popup Menu.
I have a form with 6 diffrent labels on it.
I want to make a popup menu when a user moves the mouse over it.
Thanks for the help

a

Popup Menu But...
We know, we can popup menus. Ok.

But am trying to make a button that when pressed, a menu will appear and, in this period (when menu is visible) button must be look pressed and when menu disappears, button must be look normal.

Is there any way to detect if menu is still poped ?

thanx.

Popup Menu ??
Hi,

I have a combobox.
When I push rightclick in Combobox, I want to open a popupmenu, but I don't how to.
please help me.

Popup Menu
I am running access 97 to run VBA. Is there any way to have a popup menu similar to autolist member in Microsoft VB? If so, please let me know the code. Thanks.

Popup Menu
I have not done this before so thanks to anyone that will help me out. I have creating a popup menu. It pops up when I right click, so that is working ok. What I need to know is do I put the code to the menu items in the mousedown sub?

Code:
Private Sub VendorGrid_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)

If Button = vbRightButton Then
Me.PopupMenu mnuContext
End If
' Menu item code here?

End Sub

Own Right/popup Menu??
hey, how is everyone??

ok does anyone know how i can get my own right click menu?? what im doing is making my own 'CLSID' id. this is basically going to be used to password protect certain folders (encrypted and such). now i have the whole changing of the icon and all that done, but what i need help in is making a 'special' right click/popup menu for that object so when someone right clicks on the folder it doesnt just say open and allow you to go to that dir. so is there a way i could make a popupmenu for my clsid class/id (through the registry or soemthing)???

thanks

Popup Menu Help
didnt know where else i should post this but here goes. when i run my program i have a help menu and an option called about. can someoen give me the code so taht when i click this a box pops up that i can write things about the program in thank you in advance

Popup Menu
Hey All,

I have a short query. I need to make a customised popup menu and i don't know how to go about it. It would be great if you could assist me here. I have made a scheduler and want to create a pop up menu to add, delete, or modify the items in these textboxes. It should occur when i right click.

Please Help.

Cheers,
~john~

Copyright © 2005-08 www.BigResource.com, All rights reserved