Windows Develop Bookmark and Share   
 index > Windows Forms General > set a button in mdi parent form
 

set a button in mdi parent form

Hi
I use a MDI parent form in my project and I havesome other form (child form)thats open in MDI form.
I must use some object in (MDI) parent form but when I set an object in this form (for example a button or textbox)other form go to the back of this object , How can I solve this problem?
Thanks a lot.
mohamamd  Thursday, May 25, 2006 8:43 AM

Perhaps you could make use of SendToBack() and BringToFront() methods for the controls that you want to set on the form.

Try that and see if it worked.

Regards,

Mamta

Mamta M  Thursday, May 25, 2006 10:58 AM
Hi, I have same issue, let me know u got solution or not.
techno.coder  Friday, June 09, 2006 4:21 PM

hi,

i don't think this is a problem , its expected behaviour when you work with a child the other child suppose to lose focus

hope this helps

shakalama  Friday, June 09, 2006 7:41 PM

Instead of using MDI Child and MDI Parent,you can say

this.Owner=mdiForm;//setting the owner to the mdiForm,meaning that the current form //is OWNED by the MDI.This results in the current form not being sent to back when the mdi is set focus.IT behaves like the FindAndReplace Dialog in VS.Net.Hope this helps

Karthik Krishnaswami  Sunday, June 11, 2006 1:48 AM

You can use google to search for other answers

Custom Search

More Threads

• AutoComplete does not respect ReadOnly
• Dumb Question - Clearing Form.Icon
• Datagrid editing!
• Selecting item before ComboBox is displayed
• reading and operating on an input from a textbox
• Problem with ToolBarButton and the appendant image
• Nudge effect
• Creating Professional looking applications
• Dragging form around the screen
• Fast Question; How to make a dashed pen?