Solved

hiding tabcontrol buttons

Posted on 2004-09-14
5
493 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

837 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