|
-
Mar 29th, 2006, 04:51 PM
#1
Thread Starter
Frenzied Member
Menu Shortcut Key!
The "File" menu in a web browser project has a sub-menu "New" named mnuNew. "New" also has a sub-menu that shows 2 options - "Window" named mnuNewWindow & "Message" named mnuNewMsg. Clicking "Window", as usual, opens a new instance of the browser & clicking "Message" opens the "New Message" window of the default mail client for the user to send a mail. Ctrl+N has been assigned as the shortcut key for "Window" & Ctrl+M has been assigned as the shortcut key for "Message" in the menu editor in the VB IDE (somewhat similar to the File--->New menu in IE).
Now what I find is if I press Ctrl+N on the keyboard, strangely my system's C:\ drive opens up (C:\ & not any other drive maybe because of the fact that the project resides in C:\) but there's no such problem when Ctrl+M is pressed on the keyboard.
I changed the shortcut key of "Window" to, say, Ctrl+Q. Now when I press Ctrl+Q on the keyboard, then a new browser window opens up. I even tried other shortcut combinations & all of them open a new browser window. The problem is only with Ctrl+N.
What's causing this problem? How do I overcome it?
Of course, I can assign any other shortcut to "Window" but since Ctrl+N has been the universally accepted key combination to open a new instance of an app, I did like to adhere to this combination.
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
-
Mar 29th, 2006, 05:44 PM
#2
Frenzied Member
Re: Menu Shortcut Key!
Ctrl + N is already hooked in explorer to open a new window. Does our program have a browser control in it?
-
Mar 29th, 2006, 05:55 PM
#3
Thread Starter
Frenzied Member
Re: Menu Shortcut Key!
Ctrl + N is already hooked in explorer to open a new window.
So shouldn't Ctrl+N open a new window even without explicitly assigning them as the shortcut keys in the menu editor.
Does our program have a browser control in it?
Yes, of course, it does (Microsoft Internet Control).
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
-
Mar 29th, 2006, 05:59 PM
#4
Frenzied Member
Re: Menu Shortcut Key!
That's why it's opening up a new browser, your browser control is trapping the hotkey.
I just got my new system going and don't have VB on it so I can't be sure how to bypass it at this time.
-
Mar 29th, 2006, 06:08 PM
#5
Thread Starter
Frenzied Member
Re: Menu Shortcut Key!
That's why it's opening up a new browser
No....it's not opening a new browser - neither the browser I made nor IE......it's opening the C: drive. Pressing Ctrl+N in IE doesn't open any of the drives in Windows Explorer; instead a new IE window opens up........so if not a new window of my browser, pressing Ctrl+N should atleast open a new IE window but even that's not happening..........
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
-
Mar 29th, 2006, 07:10 PM
#6
Re: Menu Shortcut Key!
What other controls are on the Form? Whichever control has the focus is intercepting and processing the Ctrl-N.
-
Mar 29th, 2006, 08:24 PM
#7
Thread Starter
Frenzied Member
Re: Menu Shortcut Key!
What other controls are on the Form? Whichever control has the focus is intercepting and processing the Ctrl-N
If that's the case, then why isn't Ctrl+M behaving differently? Why isn't Ctrl+Q behaving differently? Is it because Ctrl+N is already hooked in Explorer to open a new window?
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
-
Mar 29th, 2006, 10:56 PM
#8
Re: Menu Shortcut Key!
If that's the case, then why isn't Ctrl+M behaving differently?
Obviously the control that has the focus does not intercept and process Ctrl+M.
Is it because Ctrl+N is already hooked in Explorer to open a new window?
If a new IE browser was opening I would say yes, but you said a new Windows Explorer window is opening.
Again, what other controls are on the form?
-
Apr 3rd, 2006, 10:16 AM
#9
Thread Starter
Frenzied Member
Re: Menu Shortcut Key!
There are lots of controls on the Form - the Microsoft Internet Control, 9 Picture Boxes, a ComboBox, a StatusBar, a ProgressBar, a ListView, a TreeView, a FolderTreeView, a few Labels, a Checkbox, a few Lines etc....etc....etc....
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|