473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MDI applications that act like SDI

ddd
Hi,

Does anyone know how to create in VB.net an application which acts similarly
to Excel/Word 2003, whereby it is an MDI application, but the user has the
choice between displaying the windows within the MDI interface or in the
taskbar (which makes the app look like an SDI application). Currently
Excel/Word allow the user to modify this setting in Tools>Options Windows in
Taskbar checkbox.

I took a look at the MSDN and searched the web but I couldn't find anything
abt how they achieve this in the office applications. any ideas/suggestions?

thanks

tony
Nov 21 '05 #1
2 1871
Hi ddd

You'll have to code this yourself, which is probably why you haven't found
information on MSDN!

For the MDI application, have an MDI Parent form where you set the
IsMdiContainer property to true - make this your startup form. When you call
File | New add child windows set the MdiParent property to this MDI Parent
form object. For the SDI application, when you do file new in this case, just
Show() the form.

It's not so much work to support both, and to allow users to toggle between
the two.

HTH

Nigel Armstrong

"ddd" wrote:
Hi,

Does anyone know how to create in VB.net an application which acts similarly
to Excel/Word 2003, whereby it is an MDI application, but the user has the
choice between displaying the windows within the MDI interface or in the
taskbar (which makes the app look like an SDI application). Currently
Excel/Word allow the user to modify this setting in Tools>Options Windows in
Taskbar checkbox.

I took a look at the MSDN and searched the web but I couldn't find anything
abt how they achieve this in the office applications. any ideas/suggestions?

thanks

tony

Nov 21 '05 #2
ddd
Nigel,

Do I need "if statements" for all the pieces of code that reference the
parent(from child form) or the child(from parent or other child forms), or
is the relationship always the same weather I use show or not?

Also I noticed that word automatically places the child forms within the MDI
if I uncheck the the feature, and the opposite when I check it. How do they
achieve this? Do they use a loop to go through all children and redisplay
them?

thanks

tony
"Nigel Armstrong" <Ni************@discussions.microsoft.com> wrote in
message news:89**********************************@microsof t.com...
Hi ddd

You'll have to code this yourself, which is probably why you haven't found
information on MSDN!

For the MDI application, have an MDI Parent form where you set the
IsMdiContainer property to true - make this your startup form. When you call File | New add child windows set the MdiParent property to this MDI Parent
form object. For the SDI application, when you do file new in this case, just Show() the form.

It's not so much work to support both, and to allow users to toggle between the two.

HTH

Nigel Armstrong

"ddd" wrote:
Hi,

Does anyone know how to create in VB.net an application which acts similarly to Excel/Word 2003, whereby it is an MDI application, but the user has the choice between displaying the windows within the MDI interface or in the
taskbar (which makes the app look like an SDI application). Currently
Excel/Word allow the user to modify this setting in Tools>Options Windows in Taskbar checkbox.

I took a look at the MSDN and searched the web but I couldn't find anything abt how they achieve this in the office applications. any ideas/suggestions?
thanks

tony

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Constandinos Mavromoustakis | last post by:
CFP: CLADE 2004-Challenges of Large Applications in Distributed Environments ------------------------------------------------- PhD student - Dept.Informatics at Aristotle University of...
0
by: John Davis | last post by:
I came across a new term "web portal applications." Anyone can tell me what's the differences between web portal applications versus traditional web applications?? Portal applications only runs on...
1
by: Tom Q | last post by:
A user has multiple applications running on his/her PC and I want to create a broker component or service that is shared among the multiple apps. Each time an application changes a record it...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
6
by: Ray | last post by:
DB2 V7.2 Is it possible to list applications connected to a node by Auth ID? Is it possible to force applications connected to a node by Auth ID or am I forced to use App. Handle? Thanks, Ray
6
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal...
5
by: Prakash T. | last post by:
Dear friends, This is Prakash from in India at tamilnadu. I am a MCA Student. Please answer the Que: Mention the type of applications which can be developed using C language? Thanks and...
3
by: Birthday | last post by:
Hi, I have started to learn C# nowadays and find some ebooks on the structure and the syntax of the c# language. All the examples in the ebooks that I've found are all about console...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.