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????
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() ?
Void
Yes.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....
According to the MSDN:
However I refuse to believe such nonsense!!An MDI child form cannot cover controls on the MDI parent.
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.
Last edited by hoser2001; 08-10-2006 at 07:16 AM.
Can you attach your source? I'd like to take a look at it - if you could zip up the whole project.
Void
Sure, where do I send it?
And take it easy on me.... This is my first major project ever...![]()
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.
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.
Void
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).
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...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks