473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using button to replace tabpage' tab.

sam
I want to deploy several buttons in my GUI.
When I click one of them,the right panel will change.
(I plan to place several combobox,label and dataGrid
in the right panel)

I want to have the same effect as tabpage,but I dont
want the tabpage mode.

Can you teache me how to achieve my goal?
I really dont know how to start this.
Your help on this will be greatly appreciated.

Can PictureBox container achieve this? If it do,
I still dont know how to make the GUI to own
the tabpage effect.
Nov 20 '05 #1
1 1242
Cor
Hi Sam,

Place a panel on your form,
On that you place the controls
Outside it you place a button (button1)
Then I think you can use this sample code

\\\\\
Private Sub Button1_Click(ByVal sender _
As System.Object, _
ByVal e As System.EventArgs) _
Handles Button1.Click
Dim ctr As Control
If Me.Button2.Visible Then
For Each ctr In Me.Panel1.Controls
ctr.Visible = False
Next
Else
For Each ctr In Me.Panel1.Controls
ctr.Visible = True
Next
End If
End Sub
/////////
I hope this helps a little bit
Cor
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to...
3
by: Cynthia | last post by:
I knew that "Hide" doesn't work with Tabpage if I want to hide it. I should use Remove/Add. But I have some other controls in the tabpage which I don't want to use code to dynamiclly create them....
12
by: SJ | last post by:
Hope someone can help me out there I'm struggling with a particular problem... I have a form with many tab pages. On one tab page I've got a button which when clicked with a mouse adds items...
1
by: Tom McL. | last post by:
I have a program that I have added a tab control (using to following code) with 12 tabpages, on the pages I added AxMsChart and a Button. The button control works fine but the AxMsChart gives an...
2
by: Drew Leon | last post by:
I have a Tab Control on a form. Each one of the tabs have two populated List Boxes on them. I have a Button on the form which I would like to use to calculate the various math problems in the Tabs....
21
by: MLH | last post by:
If I choose a command button on a form in design view, open the properties box and click the Picture property and its wiz button, I'm presented with a lengthy list of pictures. Everything from Add...
2
by: john | last post by:
How can I make sure the button I drag into a tabpage will become a part of that page in stead of showing up on all tabpages? thanks, john
6
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello gurus, I want to have a Form with a TabControl, this TabControl will contain TabPage that has controls in it, this TabPage is prepared at design time. I want in runtime to duplicate the...
8
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am working with Visual C# window and in my application I need to use a button ( NEXT) . The button should displays one panel with its objects each time it clicked. I already developed the codes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.