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

Multiple Forms - please help

Hi,

I am a new C# programmer and I am trying to create a
project which has a parent MDI form. Then I want to be
able to open other forms using some buttons or menu items
on the parent MDI form.

I opened new Windows Application and set the first form
(System.Windows.Forms.Form) to the "IsMDIParent". Then I
added another Windows form and I am trying to set its
property to the IsMdiChild and it will give an
error: "Property or
indexer 'System.Windows.Forms.Form.IsMdiChild' cannot be
assigned to -- it is read only".

What am I doing wrong?
Nov 15 '05 #1
2 4315
Ran into this same problem myself.

Try setting the MdiParent property of the child form when you create the
instance of it.
"Peter Krikelis" <pk*******@hotmail.com> wrote in message
news:0e****************************@phx.gbl...
Hi,

I am a new C# programmer and I am trying to create a
project which has a parent MDI form. Then I want to be
able to open other forms using some buttons or menu items
on the parent MDI form.

I opened new Windows Application and set the first form
(System.Windows.Forms.Form) to the "IsMDIParent". Then I
added another Windows form and I am trying to set its
property to the IsMdiChild and it will give an
error: "Property or
indexer 'System.Windows.Forms.Form.IsMdiChild' cannot be
assigned to -- it is read only".

What am I doing wrong?

Nov 15 '05 #2
See

http://www.codeproject.com/csharp/sdimdiwizards.asp

-------------------------
"Manish Agarwal"- <ma***********@hotmail.com>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

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

Similar topics

1
by: Chris Beach | last post by:
Hi, I have a JSP page with several forms on it. Some of these forms are generated dynamically, and each of them submits some information to a database. Handling one form is easy, as I can...
1
by: 234 | last post by:
Please help. I'm first start to use javascript but I don't know how to develop the captioned. e.g. <select name="select" onChange="change(this.options.selectedIndex)"> <option...
0
by: Tess | last post by:
Hi, Long time reader, first time poster... Any help is appreciated. I have a few questions regarding Winform controls embedded within an html page. For more info please see the appendix. Now,...
1
by: mmethe | last post by:
The following snipplet produces "Data type mismatch in criteria expression". It must be someting simple. I will ultimately need this where condition to contain 3 clauses. I am posting it with 2...
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...
11
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the...
7
by: Siv | last post by:
Hi, I have an MDI application that uses a generic "ShowPage" routine in a module that is called when I want to display a child form. The basic idea is that in the module I have declared each form...
6
by: thomson | last post by:
Hi All, i do hae a solution in which i do have mulitple projects including Web Projects,, Depending on the functionality it gets redirected to different web projects and it is working fine, ...
3
by: imrantbd | last post by:
This is my first problem.Please help me. I have the following code: <head> <script language="JavaScript"> function addSrcToDestList() { destList1 = window.document.forms.destList; srcList...
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
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.