Solved

hiding tabcontrol buttons

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now