Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3786738
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:43:49+00:00 2026-05-19T11:43:49+00:00

Sir, I created a MDI Parent form and three Mdi Child forms. Each child

  • 0

Sir,
I created a MDI Parent form and three Mdi Child forms. Each child form contains a button. on clicking the button a new form is displayed. Mean to say if I click all the 3 buttons in 3 child form then there will be 3 new forms displayed. Its Fine.

My problems are :

1- Each new form which is displayed on clicking the button is also shown in the taskbar. I want each new form(apart from mdi child form) to be the mdi child of the main mdi parent.

2- These new forms diaplay the data received from the device connected via serialport. How many serialport objects I must create? If one, then where it must be created, on the Main mdi parent form or on the individual forms(3 new forms) ? If it is on the MDI parent form then how can i access that object in the 3 newly opened forms? If it is on the newly created forms then there would be 3 serialport objects accessing the same COM port which will result an Exception stating- “COM port is not accessible”.

PLease reply… I am recently passed out graduate and new in c#. SO please reply so that i can undrstand properly.
Thanks….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:43:50+00:00Added an answer on May 19, 2026 at 11:43 am

    1) Every new Form has a bool property ShowInTaskbar – set it to false

    // Create new MDI Child
    // within ButtonClick in MainForm
    CHILDFORMCLASS nf = new CHILDFORMCLASS();
    nf.mdiParent = this;
    nf.Show();
    

    2) SerialPort Object – I would only create one in the main form
    In your ChildForms you may access the mainForm by using MdiParent

    MainForm
         Write a public property to access the serialPort
    
    ChildForm
         PARENTFORMCLASS p = (PARENTFORMCLASS) this.Mdiparent;
         p.PUBLICPROPERTY // to access serial port object
    

    3) as there is only one object – should no longer occur

    hth

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sir, I have two window forms, each form has some controls. I want to
sir, when i click on Rename Day button jquery popop calender appears in my
sir, i created a div tag in my html page and that displays a
I've got a textfile which contains the following data: name = Very well sir
I created a video hosting site I would like to create a form on
I am trying to implement the SIR epidemic model . Basically, the way I
Given a document written with normal quotes, e.g. Ben said buttons, dear sir. I
Sir/Madam, I want to know where WSDL exists. Do user need to do interact
$(.menu-container).animate({top:25px}); $(.menu-container).animate({top:-900px}); $(.windows-container).animate({top:-730px}); hello sir.. i got a problem on queue in jquery.. what
Sir, - (void)viewDidLoad{ for (int i = 1; i <= 4; i++) { playButton=[[UIButton

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.