Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C# Programming

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-2006, 09:22 AM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default 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????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-09-2006, 09:46 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-09-2006, 12:50 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default

Quote:
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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-09-2006, 12:56 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default

According to the MSDN:
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.

Last edited by hoser2001; 08-10-2006 at 09:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-10-2006, 08:52 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

Can you attach your source? I'd like to take a look at it - if you could zip up the whole project.
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 08-10-2006, 09:17 AM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default

Sure, where do I send it?

And take it easy on me.... This is my first major project ever...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-10-2006, 05:14 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Credits: 112
Rep Power: 16
Lop will become famous soon enough
Default

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.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-11-2006, 11:52 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-11-2006, 12:12 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default

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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-11-2006, 12:16 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 10
hoser2001 is on a distinguished road
Default

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials 9 08-23-2008 03:22 PM
SQL commands in Windows Forms karateboy02 Managed C++ 4 08-11-2007 08:08 AM
Switching Between Windows Forms karateboy02 Managed C++ 3 08-03-2007 07:49 PM
Visual Studio 2005 and Windows Vista Jordan General Programming 3 01-22-2007 03:21 PM
Question about Form's On_Closing event hoser2001 C# Programming 3 08-22-2006 07:25 AM


All times are GMT -5. The time now is 07:55 PM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 735.07
chili5 ........ 309.39
Steve.L ........ 236.23
dcs ........ 214.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads