I have an MDI application with the MDI parent container has a tabcontrol on it. When I bring up any child MDI forms, it won't show up over the tabcontrol. I have tried the form.bringtofront() and that doesnt work. Short setting the controls visible property to false, I can not figure this one out. Anyone have any ideas????
Windows Forms MDI question.
Started by hoser2001, Aug 09 2006 06:22 AM
10 replies to this topic
#1
Posted 09 August 2006 - 06:22 AM
|
|
|
#2
Posted 09 August 2006 - 06:46 AM
Is the tab control covering the space the child forms appear?
Have you tried sending the control to the back - tab.sendtoback() and/or focusing the form form.focus() ?
Have you tried sending the control to the back - tab.sendtoback() and/or focusing the form form.focus() ?
Void
#3
Posted 09 August 2006 - 09:50 AM
Quote
Is the tab control covering the space the child form appear?
I tried the form.focus and that didn't work.
I also tried sending the form to the front and that didnt work.
Then I tried sending the control to the back, which works, but in the same way setting it's visible property to false works. After the child form closes the tabcontrol is not visible again until after I send it to the front again. I would like to just have to do something like sendtofront or sendtoback but neither of those work the way I want them too....
#4
Posted 09 August 2006 - 09:56 AM
According to the MSDN:
However I refuse to believe such nonsense!!
If there was a procedure I could call whenever a child form is opened that would check to see if it was behind any existing controls and would then make them invisible, and also be able to make them re-visible when the form closes would be sweet.... If anyone can find any documents on the problem I would greatly appreciate it.
Quote
An MDI child form cannot cover controls on the MDI parent.
However I refuse to believe such nonsense!!
If there was a procedure I could call whenever a child form is opened that would check to see if it was behind any existing controls and would then make them invisible, and also be able to make them re-visible when the form closes would be sweet.... If anyone can find any documents on the problem I would greatly appreciate it.
#5
Posted 10 August 2006 - 05:52 AM
Can you attach your source? I'd like to take a look at it - if you could zip up the whole project.
Void
#6
Posted 10 August 2006 - 06:17 AM
Sure, where do I send it?
And take it easy on me.... This is my first major project ever... :P
And take it easy on me.... This is my first major project ever... :P
#7
Posted 10 August 2006 - 02:14 PM
hehe, I probably don't program much better than you, turst me. You can now attach it to the forum. Just zip or rar it up.
Do a go advanced reply and there is an attachment button there.
Do a go advanced reply and there is an attachment button there.
#8
Posted 11 August 2006 - 08:52 AM
Nice looking application. Very nice work. Its obvious that it is still in Beta but it still looks great! Since you had the admin password in MD5 I took it out the XML but it still didn't match so I removed the function to check against it.
I can setup a DB to connect to and test the function. What and Where is the problem with the MDI and Tab? Tell me step-by-step (after login) what you do.
Also, I have C# 2006 so I had to convert it. Not sure what all this changed to do that.
I can setup a DB to connect to and test the function. What and Where is the problem with the MDI and Tab? Tell me step-by-step (after login) what you do.
Also, I have C# 2006 so I had to convert it. Not sure what all this changed to do that.
Void
#9
Posted 11 August 2006 - 09:12 AM
ah, sorry about the password (it's 'admin' btw)
My problem is that when I bring up a child form (Connect) button for example to bring up the form to enter database user and pwd, I have to in my code set the visible properties to the controls on the parent form to false, then to true on the child forms on closing event to be able to see the child forms at all. What I'm thinking is that I need to not use MDI function but use a ShowDialog on the form and I think that would give me the same functionality as an MDI child (minus the inherentence stuff of course).
My problem is that when I bring up a child form (Connect) button for example to bring up the form to enter database user and pwd, I have to in my code set the visible properties to the controls on the parent form to false, then to true on the child forms on closing event to be able to see the child forms at all. What I'm thinking is that I need to not use MDI function but use a ShowDialog on the form and I think that would give me the same functionality as an MDI child (minus the inherentence stuff of course).
#10
Posted 11 August 2006 - 09:16 AM
Another question would be:
On the Connections Tab there is a third column that is added that has an index integer. This only shows up when I include the SizeDataColumnToContent function. I know it has to have something to do with the fact that it is a dataset filled using dataset.readxml... Can't figure out where in the SizeData function this is happening though...
On the Connections Tab there is a third column that is added that has an index integer. This only shows up when I include the SizeDataColumnToContent function. I know it has to have something to do with the fact that it is a dataset filled using dataset.readxml... Can't figure out where in the SizeData function this is happening though...
#11
Posted 11 August 2006 - 03:36 PM
I've download your code as well. I see what you mean about the tab.
I couldn't find an easy answer but if you remove the .mdi = this part you can edit the form and edit the move event. If the form moves beyond the bounds of the parent form do nothing. This would be easy to do. That way, your logon box would show up on top of your tab control.
I couldn't find an easy answer but if you remove the .mdi = this part you can edit the form and edit the move event. If the form moves beyond the bounds of the parent form do nothing. This would be easy to do. That way, your logon box would show up on top of your tab control.


Sign In
Create Account


Back to top









