473,804 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to supress Ctrl-F6?

My MDI form has several child forms in maximized state. Pressing Ctrl-F6
causes next child to show, which I don't like. How can I cancel standard
Ctrl-F6 behaviour?
Thank you
Nov 17 '05 #1
6 2327
Alex,

You should be able to hook into the KeyDown event on the main form, and
detect the modifier that is pressed at the same time (the ctrl key). You
should be able to cancel this event.

If that doesn't work, then you can always override the WndProc method on
the main form and then handle the key events there (by handling the windows
message yourself).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
My MDI form has several child forms in maximized state. Pressing Ctrl-F6
causes next child to show, which I don't like. How can I cancel standard
Ctrl-F6 behaviour?
Thank you

Nov 17 '05 #2
"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
My MDI form has several child forms in maximized state. Pressing Ctrl-F6
causes next child to show, which I don't like. How can I cancel standard
Ctrl-F6 behaviour?


See Nicholas' earlier post on some options to do what you want.

However, you might like to consider that, unless you are writing
applications *only for yourself*, what you like and dislike is largely
irrelevant. Ctrl-F6 is the standard keystroke for moving between child forms
in MDI apps (as you know), so any of your users who've ever used such an app
(e.g. Word, Excel etc) will fully expect to be able to use that keystroke in
your app too, otherwise they might move to another vendor's solution whose
usage is more intuitive to them.

Just a thought...
Nov 17 '05 #3
KeyDown on main form does not work: it is not fired when ctrl-F6 pressed.
Now I am trying to catch it in WndProc

Thanks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Alex,

You should be able to hook into the KeyDown event on the main form, and
detect the modifier that is pressed at the same time (the ctrl key). You
should be able to cancel this event.

If that doesn't work, then you can always override the WndProc method on
the main form and then handle the key events there (by handling the windows
message yourself).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
My MDI form has several child forms in maximized state. Pressing Ctrl-F6
causes next child to show, which I don't like. How can I cancel standard
Ctrl-F6 behaviour?
Thank you


Nov 17 '05 #4
I wrote "I don't like" just to indicate my problem. For my application it is
absolutely critical to avoid standard MDI behaviour because it appears to
user as a normal single form interface. (only one child is visible at any
particular moment and MDI parent controls the switching between childs based
on functions executed by user).
So don't worry about me losing clients: the app is developed by their specs.

BTW, from options suggested by Nicholas, none seem to work. So, I am still
looking for the right answer...

Thank you

"Mark Rae" wrote:
"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
My MDI form has several child forms in maximized state. Pressing Ctrl-F6
causes next child to show, which I don't like. How can I cancel standard
Ctrl-F6 behaviour?


See Nicholas' earlier post on some options to do what you want.

However, you might like to consider that, unless you are writing
applications *only for yourself*, what you like and dislike is largely
irrelevant. Ctrl-F6 is the standard keystroke for moving between child forms
in MDI apps (as you know), so any of your users who've ever used such an app
(e.g. Word, Excel etc) will fully expect to be able to use that keystroke in
your app too, otherwise they might move to another vendor's solution whose
usage is more intuitive to them.

Just a thought...

Nov 17 '05 #5
Alex,

What messages are you looking for in WndProc? There has to be SOME
message that is handling this, you just have to find the right one.

Also, are you calling the base implementation before or after you check
the message in WndProc?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:48******** *************** ***********@mic rosoft.com...
I wrote "I don't like" just to indicate my problem. For my application it
is
absolutely critical to avoid standard MDI behaviour because it appears to
user as a normal single form interface. (only one child is visible at any
particular moment and MDI parent controls the switching between childs
based
on functions executed by user).
So don't worry about me losing clients: the app is developed by their
specs.

BTW, from options suggested by Nicholas, none seem to work. So, I am still
looking for the right answer...

Thank you

"Mark Rae" wrote:
"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...
> My MDI form has several child forms in maximized state. Pressing
> Ctrl-F6
> causes next child to show, which I don't like. How can I cancel
> standard
> Ctrl-F6 behaviour?


See Nicholas' earlier post on some options to do what you want.

However, you might like to consider that, unless you are writing
applications *only for yourself*, what you like and dislike is largely
irrelevant. Ctrl-F6 is the standard keystroke for moving between child
forms
in MDI apps (as you know), so any of your users who've ever used such an
app
(e.g. Word, Excel etc) will fully expect to be able to use that keystroke
in
your app too, otherwise they might move to another vendor's solution
whose
usage is more intuitive to them.

Just a thought...

Nov 17 '05 #6
I've found the solution.
Message is WM_SYSCOMMAND = 0x112,
and WndProc must be defined in all child forms, but not in MDI paremt form.

Finally, it works!
Thank you

"Nicholas Paldino [.NET/C# MVP]" wrote:
Alex,

What messages are you looking for in WndProc? There has to be SOME
message that is handling this, you just have to find the right one.

Also, are you calling the base implementation before or after you check
the message in WndProc?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:48******** *************** ***********@mic rosoft.com...
I wrote "I don't like" just to indicate my problem. For my application it
is
absolutely critical to avoid standard MDI behaviour because it appears to
user as a normal single form interface. (only one child is visible at any
particular moment and MDI parent controls the switching between childs
based
on functions executed by user).
So don't worry about me losing clients: the app is developed by their
specs.

BTW, from options suggested by Nicholas, none seem to work. So, I am still
looking for the right answer...

Thank you

"Mark Rae" wrote:
"Alex K." <Al***@discussi ons.microsoft.c om> wrote in message
news:EF******** *************** ***********@mic rosoft.com...

> My MDI form has several child forms in maximized state. Pressing
> Ctrl-F6
> causes next child to show, which I don't like. How can I cancel
> standard
> Ctrl-F6 behaviour?

See Nicholas' earlier post on some options to do what you want.

However, you might like to consider that, unless you are writing
applications *only for yourself*, what you like and dislike is largely
irrelevant. Ctrl-F6 is the standard keystroke for moving between child
forms
in MDI apps (as you know), so any of your users who've ever used such an
app
(e.g. Word, Excel etc) will fully expect to be able to use that keystroke
in
your app too, otherwise they might move to another vendor's solution
whose
usage is more intuitive to them.

Just a thought...


Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4533
by: LRW | last post by:
I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in c:\inetpub\wwwroot\mackinaw\survey.php on line 36" even if in the code I allow for an unselected item. (Code at the bottom here.) It works fine otherwise. Now in the past I've made a change to php.ini to repress errors, but for this project I don't have access to the php.ini.
1
1555
by: roderik | last post by:
How do I supress the output generated from each psycopg command: >>> import psycopg initpsycopg: initializing psycopg 1.99.10 typecast_init: initializing NUMBER .. .. microprotocols_add: cast 0x46dd20 for (bool, ?) initpsycopg: module initialization complete
1
3543
by: David | last post by:
I have a custom control that contains a class that Inherits the panel control. I am trying to catch a keydown event in this class and then supress it from the rest of the control as well as the form that hosts the control. The problem I am running into is that the form that hosts the control will respond to the keydown event event. Any ideas what I am missing? Some source code to help:
3
3156
by: JG | last post by:
Hi all, I have a simple aspx page. On the page there is only one button. When I click on the button, the event sequence is Page_Load, Button1_click and Page_PreRender. How do I supress the PreRender event? I know if I call Server.Transfer or Reponse.Redirect in the Button1 click event, the page prerender event will not occur. Thanks. Jie
2
1362
by: Still Learning | last post by:
Hi, Currently a crystal report is getting 359.9999 from a dataset. Even with rounding set to 0.0001 it displays 360.0 which is wrong. How can I supress rounding or get it to display 359.9999? Many thanks! NJP
4
3729
by: rob c | last post by:
This is a minor thing and only appears in IE (so far), but I'd like to know to correct it (if possible). Whenever I use a form on a webpage, Explorer always leaves a blank line following the </form> tag but Mozilla doesn't. Is there a way to supress the blank line? Thanks Rob www.rcp.ca
1
1760
by: Nikhil Mittal | last post by:
How to supress system errors in windows perl In unix it is 2>&1 , what is in windows :o
2
1445
by: =?Utf-8?B?Q2hyaXMgRGF2b2xp?= | last post by:
I have to zero supress some numbers ie; 20.000000000 or 20.0100000 What is an easy way to do this? If I got to write code, is there some code examples out there? -- Chris Davoli
2
1339
by: khani | last post by:
Hi i have following situation in cystal report in detail section i have a field say name.now i have five duplication record like this zahid zahid zahid zahid
6
1571
by: Proaccesspro | last post by:
Hello All, I have a report that is tied to a SELECT query.....Problem is, when I open the report, it also opens the results of the select query. Is there a way to supress the Query from displaying the reults??? DoCmd.openquery "qryETS Open orders", (WHAT GOES HERE?)
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.