473,799 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2391
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.goog legroups.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(for m1).

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.goog legroups.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
23388
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 examples?
0
1982
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 application ( i.e. a single app running and a single window). A very useful method indeed - very rapid to develop, forms designed at design time, all forms encapsulated within one window, SDI, only one task on taskbar etc... Now, i know...
6
539
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 surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my access database and multiple connections. I'm using forms authentication with a login page. Is...
1
3512
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 web.config file is configured as such: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" name="myApplication"/> </authentication>
2
6903
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 data but then I have other forms that give the ability to add, modify, and delete rows. This of course changes the dataset and I need that reflected in the main form. At first I was actually passing a reference of the dataset to the "modify" form...
6
7258
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 changes just don't make it onto the screen. Am I doing something wrong here? If not, is there a better feature test I can use than "appName.match()"?
3
8720
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 page.The multiple select value then insert in database added by comma.The following is my code: Form Page:form.php <head> <script language="JavaScript"> function addSrcToDestList() { destList1 = window.document.forms.destList; srcList...
5
14133
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
2661
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. so far I have built a traditional app, switchboard, forms, etc. Part of this app is to automate the forms they previously prepared manually. After the app was built and works just fine, I find out there are several case managers using MS word...
5
3314
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 the forms all at once, I'm opening them as needed. I have a main form with multiple records; and then I have a pop-up form that the user opens with button. The pop-up form contains one record relating to the current record in the main form (but...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10252
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.