Solved

hiding tabcontrol buttons

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

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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