Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 9th, 2003, 03:24 PM
NicMic's Avatar
NicMic NicMic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Cheltenham, England.
Posts: 94 NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 35 m 32 sec
Reputation Power: 9
Question MDI / SDI - What's the REAL difference?

I know (or think I know) what the difference is, but I'm wondering if there's a deeply technical reason for choosing one over the other.

As I understand it, an MDI apps child windows are all contained within the main MDI form (if MDIChild is set true) - when the app is minimized, all child windows are minimised to a single entry on the task bar.

The windows for an SDI app exist outside the main form and can be maximised/minimised independently of each other and the main form. It is still possible (as with an MDI form) to have multiple instances of a window co-existing.

Seems to me that MDI gives the best of both worlds - by setting a particular form's MDIChild to false in an MDI app, it will behave as it does in SDI.

So, is it simply a horses-for-courses choice, or am I missing a bigger issue?

TIA.

Reply With Quote
  #2  
Old July 9th, 2003, 04:05 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,834 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 30 m 30 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Ok, if you set the MDIChild to false, then it actually becomes a SDI form. Both styles server thier own purpose in programming. It just depends on what style you desire and what best performs the task that you are doing.

You are right though in the basic concepts of what the two are. A MDI parent is basically a container for children and is best used when you create MDIChildren as templates and spawn off duplicates of the template for a unique instance. Just like in a word processor and having multiple files open at the same time. Each file is basically the same form, just a new instance of it. SDI is best used for single static forms that you don't need to perform this ability in. There are multiple other reasons to choose either MDI or SDI, this is just a very obvious example of one.

Reply With Quote
  #3  
Old July 9th, 2003, 04:33 PM
NicMic's Avatar
NicMic NicMic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Cheltenham, England.
Posts: 94 NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 35 m 32 sec
Reputation Power: 9
Thanks for that - I'd hate to go down the wrong path.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > MDI / SDI - What's the REAL difference?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway