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




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




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Child Form Doesn't Respond On The First Click
I had to replace Sheridan ActiveListBar control with DBI-Tech ListBar on MDI form in my VB6 app. I spent a lot of time on that replacement without paying attention on Children forms behavior. After click on a new ListBar one Child is replaced with another one (for instance there was Customer form and after click it was unloaded and Supplier form was loaded). The first click on Supplier form doesn't do anything. Form behaves as disabled. The second click works as it should. It doesn't matter where the first click is done - any button, check box, combo. Just no any reaction.
Any idea why it's like that?
I tried to find some work around by setting focus on controls, by calling Click event procedures. Nothing helps. Only manual click makes the form responsible.

Thank you
Vlad

Runtime Menu/Right Click Menu/No Border Form
Ok, I am trying to make a form as small as possible. I turned on the boreders and its just the way I want it. Now I would like create a popup menu (to save space, instead of puting command buttons). The problem is, when I add an invislbe menu in the menu editor and try to use Popupmenu, borders and the title bar appear on my form even though borders are still set to none.

From the search I did there seems to be no way to create a run time menu without some APIs. Is there any other way to accomplish a right click menu in this situation? Thanks.

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!

Right-Click Menu In A Borderless Form?
Here is the thing: I want (in a borderless form) that when i right-click on something (let's say a form), a popup menu will appear... I know, how 2 do this in a normal form, but on a borderless...

Pop-up Menu Appears On Form Bar After Right-click
Hi, all amd a Happy New Year,

I have a pop-up menu which appears when a user clicks a label in a child MDI form that is opened modally.

1. As you will see from the screen-shot attached, the pop-up menu moves to the menu bar of the MDI parent form after the click event has been disposed off. Can anyone tell me why this is happening and how I can remedy it?

2. Also, in the right click event, the who form is repainted with a visible "shuddering" effect when the pop-up menu is displayed. It looks very awkward and I'll be grateful for any expert help on getting rid of it.

Thanks.

GoodGuy
Experience is a bad teacher for its exams precede its lessons.

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!

How Can I Inhibit The Menu For Right Click In A TextBox Control?
Hi All,

For a TextBox control, how can I inhibit the menu for right click?

Thanks in advance

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.)

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.

Left Click Form Icon Menu
When you left click on a form's icon you get a small menu appear (with Restore, Mimize, Close etc.) Is there anyway of adding another item to this menu?

I found this post which looked promising

http://www.vb-forum.com/showthread.p...=titlebar+icon

but the link to the external website does not work.

Any ideas?




Added green "resolved" checkmark - Hack

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

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!

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...

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

Move Form By Child Control Doesn't Work With 6.0
For some odd reason MSDN doesn't put any 6.0 based code on their site, and that means I usually have to translate to 6.0 code myself from .NET code.

How do I do this though:

This is the code they suggested for dragging a form using a child control:

Option Explicit
Private Declare Sub ReleaseCapture Lib "User" ()
Private Declare Function SendMessage Lib "User" (ByVal hWnd As _
Integer, ByVal wMsg As Integer, ByVal wParam As Integer, _
lParam As Any) As Long

Private Const WM_SYSCOMMAND = &H112
Private Const MOUSE_MOVE = &HF012

' Enter the line below as one line of code
Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
Dim lReturn As Long
Call ReleaseCapture
lReturn = SendMessage(Form1.hWnd, WM_SYSCOMMAND, MOUSE_MOVE, 0)
End Sub

But that doesn't work for 6.0. It says it can't find file User, which is the Lib MSDN told me to use

Do you guys have any suggestions?

Keydown Doesn't Work With WebBrowser Control On Form?
I am making a game where there is an animation, but now the hero won't walk! (the hero is not the animation) How can I make him move while having the webbrowser control on my form?(i'm using the webbrowser control to load an animated gif)

Thanks A Bunch!
Steve

Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,

I am designing one ActiveX Control with a lot of sub forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development control
with the help of these events.
I am not able to access the events (defined in the user control at design
time) of the activex control from the sub form of the activeX control.
Can anybody tell me how to do that.

Thnx in advance,

Naveen !!!!!

Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,

I am designing one ActiveX Control with a lot of forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development controls
with the help of these events.
I am not able to access the event (defined in the user control at design
time) of the activex control from the form.
Can anybody tell me how to do that.

Thnkx in advance,

Naveen !!!!!

Clicking On A Control, But Wanting To Click On Form
Quick question.

I have this form with a picturebox on it. When I click on the form, I register the coordinates through mousedown. But I also want it so that when I click on the picturebox, I want to register the X,Y coordinates of the cursor on the form - not the picturebox. Is there a way to sort of make the mouse not "see" the picturebox, even when you click on it?

Thanks in advance!

Right-click Menu And Sending Left Click To Item
Can anyone tell me how I can use insert a right-click menu into my program so that when the user has selected a file (in a file list) and right-clicks, a menu appears at the location of the mouse pointer. I aleady know how to use the PopupMenu function to show a menu as I suppose that will need to be used, I just don't know how to capture a right-click mouse event and also use the position of the mouse pointer to show the menu.

Thanks in advance!

Disable MDI Parent's System Context Menu Right && Left Click Menu Pop-up. How?
I am trying to do this without much luck, but managed to get rid-of the Min/Max buttons via an MS example at the link below.

http://support.microsoft.com/default.aspx?scid=kb;en-us;137033

However, when a user right clicks on-the MDI parent's Caption bar, a popup up menu appears - Woud like to prevent that.

Secondly, if a user "LEFT" Click on the top Left corner of the same Caption bar (where the Icon appears); it pops the same Pop-Up Menu - Like to stop that.

Thirdly, If a user double clicks on the same menu bar, form flickers, bobs down & up (Min & back to Max state), looks back at you and say's "fooled Ya!", as if it was possessed by some sort of strange evil code. Now I Would really, really, like to make it stop doing that.

Basically, like to prevent any mouse action on MDI Parent's Title Bar. Searched for couple of hours in vain (pain), but nothing turned up for what I am looking for. I can stop the right click on the form it-self by detecting mouse down button, but that’s not preventing the click event in MDI parent's title/caption bar.

Anyone know how or what needs to be done to get this to work? Any and all help, suggestions, etc. will be greatly appreciated!

Clicking Picturebox Show Menu, Click Elsewhere Disappear Menu
Hello Everybody,

I've soem pictureboxes, and I want to show too command buttons when you click on on of the images but if you click somewhere else I want to make them dissappear, I tried the form_click event, and from_mousedown even, but they only work when you click on the form, but I've loads of other things on it, so the user must be "lucky" to click on the form, but to put the code to make them disappear in every object of the form would take a lot of time and I wonderd if there was another way to make them disappear again after clicking on something else???(its not that I don't want to ut the code there because of the work, but if I didn't search for a better methods then I would stay at the same level of programming)

Add Custom Menu Item To Windows Right Click Context Menu ????
Hi everyone

Earlier today there was a thread with this Q in it but it wasnt ever resolved. What i want to do is add my own custom entry to the windows menu that pops up when you right click on an something in particular to the edit menu. So when you select some text no matter what app your in it has my custom menu option in it along with the usual copy and paste and what not.

Can this be done

If so how and where do i start ??

Adding Menu's In Windows Explorer Right Click Menu
Could anyone tell me how you can put a menu item of your own in, for example, the right click menu in windows explorer? I know it's possible , is anyone there listening to me ????? PLEASE HELP !!!!!!!

Accesing User Control's Menu In The Main Form
I have created a ActiveX User control. A menu is defined for the buttons used in this control. When I use this control in an other form or another user control I want to access the menu of the usercontrol(as a popup). Is this possible, if yes, then how??????
The User control's menu has to be used as a popup when a button created in the main form is clicked(parent).

Accesing User Control's Menu In The Main Form
I have created a ActiveX User control. A menu is defined for the buttons used in this control. When I use this control in an other form or another user control I want to access the menu of the usercontrol(as a popup). Is this possible, if yes, then how??????
The User control's menu has to be used as a popup when a button created in the main form is clicked(parent).

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?

How Easy Is It To Add To Context Menu (right Click Menu)
I'd like to be able to add to the context menu (right click menu), how is this possible? and is it restricted to the application i.e I'd like to add one to an Excel sheet and one to normal windows operations

How Can You Add The A Menu To An External App, Or A Right Click Menu Addon?
Like lets say i wanted to add a menu to outlook express, or to a right click menu popup.. anyone know how to do it?

Win2000 Doesn't See Button Click
Hi all

I compile a VB6.0 SP5 form with some code associated with it on an XP SP2 machine and then move the exe-file to a Win2000 SP4 PC. At this time all is working fine, but this Win2000 PC is a control one which is running continuously and eventually, in a few days after the start of the form, it stops responding to clicks on the command buttons, i.e. there's no button code executing and in fact the buttons don't get depressed when I click them. If the form is restarted everything becomes OK.

The command buttons I'm speaking about are SSCommand from Sheridan 3D Controls

Could anyone give me a clue what's wrong?

Cheers and thanks!

SendMessage First Click Doesn't Work
Hi there!

I'm trying to send a BM_CLICK using SendMessage to a dialog box to an external program. When I send the click, it sometimes clicks on the button, and sometimes it doesn't. But when I send two clicks, then it works everytime. Why is this?

Private Sub ClickButton()

Dim hwndDialog As Long
Dim hwndButton As Long
Dim retval As Long

hwndDialog = FindWindow(CLng(0), "Notepad")
If hwndDialog = 0 Then Exit Sub

hwndButton = FindWindowEx(hwndDialog, 0, CLng(0), "&Yes")

retval = SetActiveWindow(hwndDialog)
retval = SendMessage(hwndButton, BM_CLICK, ByVal CLng(0), ByVal CLng(0))
retval = SendMessage(hwndButton, BM_CLICK, ByVal CLng(0), ByVal CLng(0))

End Sub

Double-click Doesn't Work
I've noticed double-clicking on combos is not intercepted although there IS a doubleclick event for them. Am I missing something? Not that I need to write code for it, but I was just testing and it drew my attention...

DataGrid And Click() Doesn't Work
I have written a code to tell me the row and column of a cell that I click in my DataGrid. The funny thing is that when I click a cell, the column is right but the row is always wrong unless I DoubleClick the cell. Anyone know why this is or how to fix it? I need to be able to click once on a cell and send it's value to a TextBox My code is working properly and I'll post it:

Code:
Private Sub DataGrid1_Click()
Dim nRow As Integer
Dim nCol As Integer

IMTextBox.Text = DataGrid1.Row & " is the row and " & DataGrid1.Col & " is the column."
End Sub


Thanks, Jeremy

Help (double-click In Excel Doesn't Work)
Something happened with my excel. I can no longer open up a excel file by clicking on it. I need to open it up via the excel program it self.

Anyone have anyclue's what i did?

TreeView Node Click Doesn't Work
Does anyone know why a Click Event for a TreeView Node wouldn't regster? I can click on any other node but this one. Anyone got any ideas? Thanks, Jeremy

P.S. - I know there isn't much information but there isn't much to give. I have a TreeView that 6/7 nodes register the Click Event and 1/7 that doesn't.

Simulating A Click: Mouse_event Doesn't Work!
Hi!
I'm programming a trainer for a freeware game. The program searches a color in the window and then it should click it. But mouse_event and even SendInput don't work on that window What can I do?
Thanks and forgive my poor english

When Click On File Name In MRU List - Doesn't Open
Hello, All -

I have the following code, as spelled out in a VB6 book, for a Most Recently Used file list on the File menu of my app:

at Form_Load():

FileName = GetSetting("MyAppName", "Settings", "Doc1", "")
If FileName <> "" Then
Load mnuMRU(1)
mnuMRU(1).Caption = FileName
mnuMRU(1).Visible = True
End If

-----------------------------------

at File_Open():

Public Sub mnuFileOpen_Click()
Dim oName As String

If MainWindow.ActiveDocument.IsModified = True Then
frmOpFile.Show 1
ElseIf MainWindow.ActiveDocument.IsModified = False Then

With OpenDialog
.CancelError = True
On Error GoTo ErrHandler
.ShowOpen
oName = .FileName

If GetSetting("MyAppName", "Settings", "Doc1") = "" Then
Load mnuMRU(1)
End If
mnuMRU(1).Caption = .FileName
mnuMRU(1).Visible = True
SaveSetting "MyAppName", "Settings", "Doc1", .FileName

End With

MainWindow.ActiveDocument.Open oName, 0
MainWindow.Prompt ("File Opened. Ready for User Input...")

End If

ErrHandler:
' User pressed the Cancel button
Exit Sub

End Sub

-----------------------------------------

In the File menu I have an entry for mnuMRU, with index "0" and the Visible box unchecked.

The file name of the last used file displays correctly on the File Menu and is recorded correctly in the Registry. When I click on the item on the File menu, however, nothing happens.

What am I missing which actually causes the file to open?

Thanks very much,

Stephen

Menu Click = Picture Box Click
I have a strange problem. I have a picture box and when the menu drops down and I make a selection on it the picture box captures the event and fires the mouse click event. Normally this would be no problem but the mouse click depends on what is plotted and seeing as how nothing is plotted I get an error message. Nothing wrong with the error because nothing is printed.

Does anybody know how to get around this?

I hope I have explained it good enough!

Why My New Menu Doesn't Work ?
I made a new COM Addin menu in the Word2000.

When I clicked any menu item which had defined a sub or a function it always pop-up the message "The macro cannot be found or has been disbled because of your Macro security seetings." whatever in the debugging model or running.

But I had set the Tools-Macor-Security... to low and selected 'trust all installed addin'.

So I cannot do anything.

Thanks.

Flatscrollbar Doesn't Respond To Quick Mouse Click
if I click on the arrow of the flatsrollbar quickly, the flatscrollbar only responds to half of the click, is that a bug of the flatscrollbar? is there any way around it?

thanks

Why Doesn&#039;t Double Click Event Fire For Combo Box?
Why doesn't the double click event fire for the combo box? I assume it is supposed to. Am I missing something? Please help!

Susan

Popup Menu Doesn't Show
Hello ,

i started out with VB , and made a little app , i managed to make a systray icon for it but when i right click the icon it doesn't show a little menu at all but it gives me a error saying " popup menu should have at least one sub menu " . i made the menu with the menu editor as described on the MS help pages but no go . this is the code i got from MS

anybody got a clue what i'm doing wrong ?


Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'this procedure receives the callbacks from the System Tray icon.
Dim Result As Long
Dim msg As Long
'the value of X will vary depending upon the scalemode setting
If Me.ScaleMode = vbPixels Then
msg = X
Else
msg = X / Screen.TwipsPerPixelX
End If
Select Case msg
Case WM_LBUTTONUP '514 restore form window
Me.WindowState = vbNormal
Result = SetForegroundWindow(Me.hwnd)
Me.Show
Case WM_LBUTTONDBLCLK '515 restore form window
Me.WindowState = vbNormal
Result = SetForegroundWindow(Me.hwnd)
Me.Show
Case WM_RBUTTONUP '517 display popup menu
Result = SetForegroundWindow(Me.hwnd)
Me.PopupMenu Me.mPopupSys
End Select
End Sub

Non Visable Menu Doesn't Work???
I have a menu with two sub menu's. The main menu is not visble. But when I use the shortcuts the command doesn't activate for either of them

If you make it visable it works
I dont want it visable, how do you fix this ????

Popup Menu Doesn&#039;t Work
hi all,

popup menu doesn't work after i added bitmaps to it

any solutions ?

waiting for F.B

thanx on advance

Popup Menu Doesn't Work
Hi there. I am having a problem with my pop up menu. This is extremely irritating!!! Here is a what I am doing:

I have 3 Forms and they have the following hierarchy:

  ParentProviderSearch
     PaymentPlan
        PaymentReceiptList


ParentProviderSearch opens first. The PaymentPlan form is opened from the ParentProviderSearch form. The PaymentPlan form has a list view that lists all the payment plans. When they user right clicks on the list view then a popupmenu appears. From this popup menu they can select "view Payment Recipts". When they user clicks on that menu item, it opens up PaymentReceiptList.

The PaymentReceiptList also has a listview, and when the user right clicks it, it is supposed to diplay a popup menu. THE POPUP MENU DOESN'T APPEAR!!! Does anybody have any clues as to why? The menu is visible so you can see it on top of the form, but it doesn't appear. Please keep in mind that all the 3 forms are opened as vbmodal. I don't know if that has anything to do with it. Please Help!!! This is absolutely ridiculous.

MDI Frm Menu, And Right Click Menu Problems
I have a MDI form with a Menu Bar, and a Right Click Menu that work fine without any Child forms. But once I load a child form on the MDI form, the Menu Bar is Empty(Just a gray line). And the Right Click Menu doesn't work anymore. Please help!!




Edited by - Krum on 9/4/2003 5:13:15 PM

Why When Menu Item Not Visible, Shortcut Doesn't Work .. ?
Is there a reason why if a menu (main item) isn't visible that it's sibling/child items shortcut keys won't work ? I have a custom context menu with key shortcuts but as it's not visible in the main menu (at the top of the form) the shortcuts don't work. When I do leave the context menu visible in the form the shortcuts work fine. If anyone could please explain the reason behind this or offer a solution to get around this problem it would be greatly appriciated.

Thanks,

Stupid Question - Why Does My Underlining Doesn't Show On The Menu?
On my menu tabs I have each letter underline properly before I even run the program in the Object View. But when I run the program the underlines disappear? Please help.

Thanks

Control+C To Copy From Textbox Doesn't Work As ActiveX Control In IE
Hello all,

I've got a wierd problem that I'm trying to figure out. I've created an activeX control using vb 6 sp5 for use in IE 5 and higher. The control contains a textbox and does some things that aren't important to this question like getting the linecount, etc...

When I run my control from vb, a control+C allows me to copy text, however, once I build the control into a cab and then view it on a web page, control+C won't copy text.

You can easily recreate this problem by simply creating an activeX control in VB with a multiline textbox with vertical scrollbars on it. Play it from vb and a control+C works fine, build a cab and look the web page the PDW creates and the control+C won't work.

Any ideas why this is happening and if there's anyway to make it work?

Thanks for the help!

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