Solved

hiding tabcontrol buttons

Posted on 2004-09-14
5
498 Views
Last Modified: 2008-02-01
Hi, I have a box on a form that has 8 tabs on. I want to make the tab buttons invisible to the user, but still be able to navigate between the tab areas by using command buttons.

For example, I want my login page to only have two text boxes and a login button. This would be on the first tab area. The login button would then take you to the next tab area (TabPage2). All the time, the user shouldn't be able ot view the actual tab buttons, jsut the buttons I put on the pages.

Cheers

mpaver
0
Comment
Question by:mpaver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Accepted Solution

by:
tzxie2000 earned 120 total points
ID: 12056220
I suggest you to do like below

create a tabcontrol set visible=false
create page you want
place panel on page set visible=false
place other controls like login textbox... on the panel
create a panel array to contain this panels
like:
   Dim pa as panel(8)
   rem 8 is the page number
   panel(1)=panel1
   panel(2)=panel2

define current index
  dim currentindex as integer
  currentindex=0;

write a switch page method like

  public sub SwitchTo(byval index as Integer)
  {
     panel(currentindex).parent=tabcontrol.tabpages(currentindex)
     panel(currentindex).visible=false
     currentindex=index
     panel(currentindex).parrent=me
     panel(currentindex).visible=true
  }

0
 
LVL 3

Assisted Solution

by:GrumbleBot
GrumbleBot earned 120 total points
ID: 12058236
You could just use Panels. then use the visibilty for each one. it would basically be the same as a tabless tabcontrol. any controls on a panel would disappear with the panel.

Good luck
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question