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 916329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:02:07+00:00 2026-05-15T18:02:07+00:00

My c# WinForm solution contains several projects including an Admin project with several forms

  • 0

My c# WinForm solution contains several projects including an Admin project with several forms and a User project with several forms. I want my user forms to behave differently when specific admin forms are open.

How can the user forms tell when admin forms are open?

All forms have no ‘this.Text’ value (all these values are null).

When I loop through all forms identified by ‘FormCollection fc = Application.OpenForms’, it does not show the forms from the other project; it seems to only show the forms from the same project.

Also, all the admin forms run from one .exe file and all the user forms run from another .exe file.

Any help is appreciated.

  • 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-15T18:02:07+00:00Added an answer on May 15, 2026 at 6:02 pm

    Use Mutex class for that scope.
    Mutex is a Windows kernel object that has an unique identifier for a Windows computer.

    public class Form2 : Form
    {
        Mutex m;
        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            m = new Mutex(true, "Form2");
        }
    
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            m.ReleaseMutex();
        }
    }
    
    public class Form3 : Form
    {
        bool form2IsOpen;
        public Form3()
        {
            try
            {
                Mutex.OpenExisting("Form2");
                form2IsOpen = true;
            }
            catch (WaitHandleCannotBeOpenedException ex)
            {
                form2IsOpen = false;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VS solution containing several projects. While debugging a particular project all
I have a solution in Visual studio containing a winform project(WinProj) and a deployment
I have a VS2010 solution with several projects in it. These projects are winforms
I am currently automating the build of our .NET solution (which contains many projects,
I'm trying to design a client / server solution. Currently it contains three projects.
I have a Visual Studio 2010 Solution that contains three projects: A Windows Service
My Main Project Is Under WPF, In My Solution I have: winform which name
is this solution possible in asp.net dragging picturebox inside winform on runtime i just
The winform: The code: using System; using System.Windows.Forms; namespace DemoApp { public partial class
I have a winform application that contains a c# webbrowser control.Webbrower control load a

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.