[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

MDI container form

Why mdi container doesn't respond to click event
0
f_asmaa
Asked:
f_asmaa
1 Solution
 
arif_eqbalCommented:
Almost all mouse events are not supported by an MDI like Click, Mouse Up, Mouse Down
Why?? Don't know

If you want to make it work you can use a bit of turn-around Fill the area with a Panel and use its Click event.

0
 
RonaldBiemansCommented:
Hi F_asmaa,

This is by design, the Mdi parent was design to be used just as a container for the children that is why you cannot add controls to the parent either (atleast not is a useable way). Arif eqbal suggestion won't work because all your children will appear behind the panel.

The Mdi parent actually exist of 2 windows.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
f_asmaaAuthor Commented:
Dear RonaldBiemans,

What do you mean by "The Mdi parent actually exist of 2 windows"
0
 
RonaldBiemansCommented:
An MDI form is actually built using two Windows: the main MDI Window itself and a child window which contains the MDI child forms. This window is termed the "MDIClient" and can be seen if you point a tool like Spy++ at the MDI window:
0
 
armoghanCommented:
Good show RonaldBiemans

new thing for me :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now