Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Windows Forms MDI question.

  1. #1
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0

    Windows Forms MDI question.

    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????

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    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

  4. #3
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    Is the tab control covering the space the child form appear?
    Yes.
    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....

  5. #4
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    According to the MSDN:
    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.
    Last edited by hoser2001; 08-10-2006 at 07:16 AM.

  6. #5
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    Can you attach your source? I'd like to take a look at it - if you could zip up the whole project.
    Void

  7. #6
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    Sure, where do I send it?

    And take it easy on me.... This is my first major project ever...

  8. #7
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    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.

  9. #8
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    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

  10. #9
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    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).

  11. #10
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    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...

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [VB.net] Hello World - Windows Forms
    By Charny in forum Video Tutorials
    Replies: 0
    Last Post: 06-30-2010, 10:19 AM
  2. [C#] Hello World - Windows Forms
    By Charny in forum Video Tutorials
    Replies: 0
    Last Post: 06-29-2010, 11:47 PM
  3. C# windows forms tutorials?
    By killcode in forum C# Programming
    Replies: 2
    Last Post: 05-14-2009, 06:10 AM
  4. SQL commands in Windows Forms
    By karateboy02 in forum Managed C++
    Replies: 4
    Last Post: 08-11-2007, 06:08 AM
  5. Switching Between Windows Forms
    By karateboy02 in forum Managed C++
    Replies: 3
    Last Post: 08-03-2007, 05:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts