I wanted to know how to separate contents of a tab from another tab.
I tried Deleting It but it was deleted even in tab 1
I used Microsoft Tabbed Dialog Control SP6
Any help would be Appreciated
Yuvjeeth

Dani AI

Generated

Quick diagnosis and a simple fix (for , and as asked for more detail):

Most β€œtab” controls come in two flavours: a page-based tab (each page is a container so controls belong to that page) and a tab-strip (tabs only β€” you must provide the page containers yourself). If deleting a control removes it from every tab, that control was not placed on a page container but on the form itself. The cure is to either use a page-based tab and place controls while that page is selected, or use a TabStrip and switch between separate container controls (Frames or PictureBoxes) for each tab.

Example: use a TabStrip plus Frames (design-time: add frames, put the controls inside each frame, align them to the same area). Then show/hide frames in the TabStrip click handler:

' add tabs (run once)
TabStrip1.Tabs.Add , , "General"
TabStrip1.Tabs.Add , , "Advanced"

' switch visible frames
Private Sub TabStrip1_Click()
    If TabStrip1.SelectedItem Is Nothing Then Exit Sub
    FrameGeneral.Visible = (TabStrip1.SelectedItem.Index = 1)
    FrameAdvanced.Visible = (TabStrip1.SelectedItem.Index = 2)
End Sub

Design-time tips and troubleshooting:

  • To place a control on a page-based tab, click the tab so the page becomes active, then draw the control β€” it will be a child of that page and move with it.
  • If a control does not move with the page when you switch tabs in the designer, cut it and paste while the target page is selected.
  • To add tabs programmatically with TabStrip: TabStrip1.Tabs.Add , , "Caption".
    If the problem persists, post the exact tab control name and VB version so the answer can show the precise property names to use.

Recommended Answers

All 2 Replies

How To Add A Tab In My Form

well, it works fine to me.
Provide more information, what exactly you want to do.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.