473,511 Members | 16,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

switching between MDI child forms

To switch between the child forms in an MDI app, you can use ctrl-tab.
I want to eliminate that option. I don't want to let the users
switch between the children. I tried using KeyPress and KeyDown in
the MDI parent form but I couldn't catch both the ctrl and tab clicks.
Any suggestions? Thanks in advance.
Nov 16 '05 #1
3 6999
I checked into this, and I believe you do *not* want to use an MDI form in
this scenario.

Telmo
"Leslie" <ha*****@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
To switch between the child forms in an MDI app, you can use ctrl-tab.
I want to eliminate that option. I don't want to let the users
switch between the children. I tried using KeyPress and KeyDown in
the MDI parent form but I couldn't catch both the ctrl and tab clicks.
Any suggestions? Thanks in advance.

Nov 16 '05 #2
I have to use an MDI form. I tried doing an override of the
OnKeyPress event but it doesn't get fired. I also tried KeyPress and
KeyDown events on the MDI parent form and the KeyDown gets fired, but
i am unable to capture the ctrl-tab combo. It is only seeing one of
the items. Here is the code:

private void FrmParentMDI_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab && (ModifierKeys & Keys.Control) != 0)
{
e.Handled = true;
}
}

Thanks

"Telmo Sampaio" <te***********@hotmail.com> wrote in message news:<#6**************@TK2MSFTNGP12.phx.gbl>...
I checked into this, and I believe you do *not* want to use an MDI form in
this scenario.

Telmo
"Leslie" <ha*****@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
To switch between the child forms in an MDI app, you can use ctrl-tab.
I want to eliminate that option. I don't want to let the users
switch between the children. I tried using KeyPress and KeyDown in
the MDI parent form but I couldn't catch both the ctrl and tab clicks.
Any suggestions? Thanks in advance.

Nov 16 '05 #3
I have to use an MDI form. I tried doing an override of the
OnKeyPress event but it doesn't get fired. I also tried KeyPress and
KeyDown events on the MDI parent form and the KeyDown gets fired, but
i am unable to capture the ctrl-tab combo. It is only seeing one of
the items. Here is the code:

private void FrmParentMDI_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab && (ModifierKeys & Keys.Control) != 0)
{
e.Handled = true;
}
}

Thanks

"Telmo Sampaio" <te***********@hotmail.com> wrote in message news:<#6**************@TK2MSFTNGP12.phx.gbl>...
I checked into this, and I believe you do *not* want to use an MDI form in
this scenario.

Telmo
"Leslie" <ha*****@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
To switch between the child forms in an MDI app, you can use ctrl-tab.
I want to eliminate that option. I don't want to let the users
switch between the children. I tried using KeyPress and KeyDown in
the MDI parent form but I couldn't catch both the ctrl and tab clicks.
Any suggestions? Thanks in advance.

Nov 16 '05 #4

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

Similar topics

8
4919
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
3
5601
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
3
9673
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
3
3195
by: Lance | last post by:
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI...
10
3984
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
1170
by: Bernie Yaeger | last post by:
I have an mdi container that is opened max. Inside can be zero or dozens of child forms. One of the forms - my reporttree - is to be opened normal; all others maximized. When you have the...
2
2146
by: Lenster | last post by:
Environment --------------- Visual Studio.NET 2003 Version 7.1.3088 ..NET Framework 1.1 Version 1.1.4322 SP1 XP Professional 5.1.2600 SP2 Build 2600 Problem Description...
3
4368
by: Simon Verona | last post by:
I have a parent form which contains a toolbar. The toolbar controls the loading and switching to of MDI child forms. The code for the toolbar click event and one of the subroutines that loads...
13
2915
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
0
7245
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,...
0
7356
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,...
1
7085
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...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5069
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...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
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...
0
1577
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 ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.