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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:47:18+00:00 2026-06-11T01:47:18+00:00

I am using split containers in my application. One parent split container. There are

  • 0

I am using split containers in my application. One parent split container. There are three split containers in panel2 of parent split container.

Now when I click on one of the panel of split container embedded in panel2 of parent container, how to find that which containers which panel is clicked?

Thanks in advance!

  • 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-11T01:47:19+00:00Added an answer on June 11, 2026 at 1:47 am

    You can try subscribing all of the panel’s to use the same click event. The sender would be the SplitterPanel class, which will have a Parent property (hidden from IDE but it’s there) that will be the SplitContainer:

    public Form1() {
      InitializeComponent();
    
      splitContainer1.Panel1.MouseClick += Panel_MouseClick;
      splitContainer1.Panel2.MouseClick += Panel_MouseClick;
      splitContainer2.Panel1.MouseClick += Panel_MouseClick;
      splitContainer2.Panel2.MouseClick += Panel_MouseClick;
      splitContainer3.Panel1.MouseClick += Panel_MouseClick;
      splitContainer3.Panel2.MouseClick += Panel_MouseClick;
      splitContainer4.Panel1.MouseClick += Panel_MouseClick;
      splitContainer4.Panel2.MouseClick += Panel_MouseClick;
    }
    
    void Panel_MouseClick(object sender, MouseEventArgs e) {
      SplitterPanel sp = sender as SplitterPanel;
      SplitContainer sc = sp.Parent as SplitContainer;
      MessageBox.Show(sc.Name + " - " + sp.Tag.ToString());
    }
    

    For demonstration purposes, I entered a 1 or a 2 in the tag property of each panel since the sub-panels used in the SplitContainer do not use the Name proprety.

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

Sidebar

Related Questions

I have made a String[] array by using String.split(.) . I am now trying
i try to dispose controls in split container using this code. foreach (Control c
For some time now, a few people who have been using my application has
i am using a split container. For some reason, the splitter looks like this:
I want to split a string in Javascript using split function into 2 parts.
So I am using: fileName.Split(' '); And I am wondering if I can init
I'm using the split linux command to split huge xml files into node-sized ones.
I am using JS to split my ePub chapter into pages. I wrap code
In Java, I'm using the String split method to split a string containing values
HI All, I've been using the basic split for a while - where 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.