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

  • Home
  • SEARCH
  • 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 8583051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:26:37+00:00 2026-06-11T21:26:37+00:00

I have main form which is MDI parent. Inside I opened second (same solution,

  • 0

I have main form which is MDI parent.

Inside I opened second (same solution, different project) form like this:

Dim f As New mynevproj.frm_list
With f
  .MdiParent = Me
  .Show()
End With

In those new form (frm_list) I open another new form in few instances:

Dim fa As New frm_art1
With fa
  .StartPosition = FormStartPosition.Manual
  .Location = New Point(Me.Location.X + 20 + (inst * 20), Me.Location.Y))
   AddHandler .aClosed, AddressOf frm_artikl_Closed
  .Show()
End With

What happens?

When I open few instances of frm_art1 and then closes frm_list I expect that all frm_art1 will be closed in order to closing frm_list.

But that doesn’t happen.

Every time I click (X) to close frm_list one instance of frm_art1 closes and finally when all frm_art1 was closed then frm_frm_list closes.

How to get that all forms opened through frm_list closes when I close frm_list.

This works good in non MDI enviroinment.

Now I try additionally this in form_closing of frm_list:

For Each frm As Form In My.Application.OpenForms
  If frm.Name = "frm_art1" Then
    frm.Close()
  End If
Next

And this also doesn’t work!

  • 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-06-11T21:26:38+00:00Added an answer on June 11, 2026 at 9:26 pm

    Try making the frm_list the owner of the other forms:

    Dim fa As New frm_art1
    With fa
      .StartPosition = FormStartPosition.Manual
      .Location = New Point(Me.Location.X + 20 + (inst * 20), Me.Location.Y))
      AddHandler .aClosed, AddressOf frm_artikl_Closed
      .Owner = Me
      .Show()
    End With
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have a Windows Form Project , which has a main form,and in this
I have a control in my parent mdi form which I wish to be
lets say i have a main form which have a lot of functionallity. this
I have a C# windows application which does the following: 1) the main form
I have a main class(which is basically a netbeans form;drag and drop) from where
I have a login form, which needs to be re-directed to the main page
I have a MDI main form. On it I host a form, and I
We have an MDI form which contains some number of child forms which have
Currently I have a main form, from which I call a popup that I've
I have my main form which has a NotifyIcon attached for balloon tips. I

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.