473,385 Members | 1,342 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,385 software developers and data experts.

Multiple forms

Hallo,
I want to write a programming with c#.Net having forms like MS Word.
The main form A contain commonly used objects.I have many other forms
(B,C,D) etc that have inherited from A. i realised that when i want to
open B,or C while in any of the forms a completely new form like A, B,
C, or D is opened..that is two forms open at same time. This is
actually not what i want. I want a word style of form when documents
are open within the main form. if a new document is to be opened the
former is either cloed or runs at the background. i will prefear closed
since i deal with DB to advoid many info in the memory.
thx in advance

Sep 20 '06 #1
2 2372
You want an MDI (Multiple Document Interface) application. See
http://msdn.microsoft.com/library/de...plications.asp

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.

"MORALBAROMETER" <su******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hallo,
I want to write a programming with c#.Net having forms like MS Word.
The main form A contain commonly used objects.I have many other forms
(B,C,D) etc that have inherited from A. i realised that when i want to
open B,or C while in any of the forms a completely new form like A, B,
C, or D is opened..that is two forms open at same time. This is
actually not what i want. I want a word style of form when documents
are open within the main form. if a new document is to be opened the
former is either cloed or runs at the background. i will prefear closed
since i deal with DB to advoid many info in the memory.
thx in advance

Sep 20 '06 #2
Hi,
thx for the promt reponse. Let me give an example: I have forms 1,2 and
3. form 1 is main and has main menu were i can call form 2 and 3 using
MDI. now i want to close form 2 and automatically open form 3. this
closing is done in form 1 which is the MDIcontainer as well a wanting
form 3 to open in the MDcontainer(form1).

Moreover i have some information that i want to pass from form 2 to
form 3 when its closing. I can go about this without opennig each form
seperately but using MDI. I read this the page u directed me but could
get a solution to the above problem.. Also thought of using delegates
and events to let form 1 receives calls from form 2, and 3 and in form
1 determine which form to close.
Kevin Spencer wrote:
You want an MDI (Multiple Document Interface) application. See
http://msdn.microsoft.com/library/de...plications.asp

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.

"MORALBAROMETER" <su******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hallo,
I want to write a programming with c#.Net having forms like MS Word.
The main form A contain commonly used objects.I have many other forms
(B,C,D) etc that have inherited from A. i realised that when i want to
open B,or C while in any of the forms a completely new form like A, B,
C, or D is opened..that is two forms open at same time. This is
actually not what i want. I want a word style of form when documents
are open within the main form. if a new document is to be opened the
former is either cloed or runs at the background. i will prefear closed
since i deal with DB to advoid many info in the memory.
thx in advance
Sep 20 '06 #3

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

Similar topics

22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
0
by: jon | last post by:
Using Visual C++ and MFC, one could generate a very nice MMI using CFormView and the method detailed in the MSDN "vswap" example to allow multiple forms to be viewed ( switched to ) within a single...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
1
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The...
2
by: John Granade | last post by:
I'm looking for the best way to make a dataset available from multiple Windows forms. The dataset is created from an XML file. I have a main form (frmMain) that loads the dataset and reads the...
6
by: Adam Tilghman | last post by:
Hi all, I have found that IE doesn't seem to respect the <SELECT> "multiple" attribute when set using DOM methods, although the attribute/property seems to exist and is updated properly. Those...
3
by: imrantbd | last post by:
I need array type name like "destList" must use for my destlist select box,not a single name.Or need a solution to capture multiple value of "destList" select box and send all selected value in php...
5
by: c676228 | last post by:
Hi everyone, my colleagues are thinking about have three insurance plans on one asp page: I simplify the plan as follow: text box:number of people plan1 plan2 plan3
6
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. ...
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.