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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:26:17+00:00 2026-06-08T08:26:17+00:00

Hi I am using TabControl to make Conference System, the private chats would be

  • 0

Hi I am using TabControl to make Conference System, the private chats would be in a new TabItem. I am using this code to present a new member chatting in private:

TabItem ti = new TabItem();
ti.Header="Name";
MyTabControl.Items.Add(ti);

but the problem with this code is that I am adding a list box in the TabItem but the TabItem doesn’t have a function to add an item in it. how can I add items into TabItem?

Second try: I used this code to present a new member chatting in private

ItemsControl it = new ItemsControl();
ListBox lst = new ListBox();
lst.Width = 571;
lst.Height = 301;

it.Items.Add(lst);
tabControlChat.Items.Add(it);

with this code I can add all items I need in the new tab. but the main problem is that I can’t name the tab there is no property like (ti.Header) to name the tab. so what is the solution please? and thank you

  • 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-08T08:26:18+00:00Added an answer on June 8, 2026 at 8:26 am

    Use this:

        TabItem ti = new TabItem();
        ti.Header = "Name";
        tabControl1.Items.Add(ti);
    
        ListBox lst = new ListBox();
        lst.Width = 571;
        lst.Height = 301;
    
        ti.Content = lst;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was using System.Windows.Forms.TabControl to list custom pages, but there seems be a Hardcoded
I am working with Wpf. I am using TabControl, In some specific condition TabItem's
I want to add new TabTtems to my TabControl , but each TabItem must
Using TabControl.SelectTab(...) shows the tab but it also gives the tab focus. I would
I'm very new to WPF and am writing an application using this example as
I'm using the WPF TabControl in my application in order to switch between different
I'm using TabActivity with Custom Title. TabControl.xml contains android:focusable=true android:focusableInTouchMode=true When activity gets launched,
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I am using a TabControl to programmatically show or hide groups of form controls.
I have a TabControl, and I am using a TPanel to group my controls

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.