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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:54:31+00:00 2026-06-16T09:54:31+00:00

I have panel with few textboxes, datagridview, etc… – Panel1. Also, I have TabControl

  • 0

I have panel with few textboxes, datagridview, etc… – Panel1.
Also, I have TabControl with 3 TabPages (may be more) on which I would like to add that Panel1.
I don’t know is this good idea because of events which will be happen in tab pages and collecting data from textboxes. Will it be better do build one usercontrol instead of panel?

But, ok…
How to add that panel to tab pages?
I try:

    Panel1.Location = New Point(50, 50)
    TabControl1.TabPages(0).Controls.Add(Panel1)

    Panel1.Location = New Point(60, 50)
    TabControl1.TabPages(1).Controls.Add(Panel1)

    Panel1.Location = New Point(70, 50)
    TabControl1.TabPages(2).Controls.Add(Panel1)

But this, of course don’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-16T09:54:33+00:00Added an answer on June 16, 2026 at 9:54 am

    I am a huge fan of panels! And who doesn’t love tabs? I don’t believe you should have any issues with events, as long as they are setup correctly at the panel / control level.

    A basic way to handle:

            'a new panel
            Dim pnlToAdd As New Panel
    
            'just to see the panel added - add your panel properties here
            pnlToAdd.BackColor = Color.Red
    
            'add something to panel
            Dim txtToAdd As New TextBox
    
            'add a control to test panel
            pnlToAdd.Controls.Add(txtToAdd)
    
            'create a tabpage
            Dim tabPageRef As New TabPage
    
            'set the tabpage to be your desired tab
            tabPageRef = TabControl1.TabPages(1)
    
            'add the panel
            tabPageRef.Controls.Add(pnlToAdd)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net 3.5 update panel and I have a few textboxes that
I have an update panel which contains a few controls, a Place Holder which
i have a panel which iam showing as pop up with few textbox controls
I have a few controls defined inside an update panel which are bound to
I have Ext.tab.Panel with few items. One item is login panel of type Ext.form.Panel.From
I have TPanel. On this Panel there is an TImage descendant , few other
I have a Panel on windows Form with few controls inside panel, Can i
I have a panel that may or may not be within other panels. I'm
I have an ASP.NET 4 webpage that contains an update panel which just allows
I have a stack panel with a few (different) items: <StackPanel ...> <TextBlock ...

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.