473,394 Members | 1,956 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,394 software developers and data experts.

Get No of Tab Page in Run-time

I had desgin a usercotnrol (which is a form with one Tab Control and with
One default Tab Page1)
In that user Control, there is a button to count no. of Tab page , and
Enabled all Tab Page
Now, I design a new form and inherits this usercontrol. I add one more Tab
Page in the Tab Control(So, Totally 2 pages)

However, i found that that button cannot find the Seconad page, it only
found one page. In fact, there is over 30 forms in my application, I really
want to put such control in "UserControl" but not each form,
Does Anyone know how to do ?? Thanks in advance.

-- mybutton
Private TabsToShow() As TabPage

Dim t As TabPage
Dim i As Integer
ReDim Preserve TabsToShow(TabControl1.TabCount - 1)
For Each t In TabControl1.TabPages
t.Enabled = True (If there is 5 pages in the form, disable 5
Page)
Next
End Sub


Nov 21 '05 #1
0 782

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

Similar topics

5
by: work4u | last post by:
Hello, I tried to use FSO to have a function. the idea is when people fill out the form which include the property information. such as hotel info, hotel image,..., then when they hit the...
19
by: n0sPaM | last post by:
Is it possible to schedule an .ASPX page to run automatically, say every hour? N.B.
1
by: Jim Heavey | last post by:
Hello, I am walking through the ASP.Net book by Dino Esposito. I created a new project and used the "add existing" option to add the files to my new project. He had all of the code on a single...
2
by: thisyr4leafs | last post by:
Hello All I'm stumped as to why my aspx page takes so long to load. When I run this is a development environment (with minimal data in the database) all is fine. I ran the stored procs (in a...
24
by: Randall Arnold | last post by:
I know how to use MSHTML to grab the innerhtml from an html web page, but what if I want to look at elements of a rendered aspx page? Is there any way to do this using the MSHTML DOM object? ...
8
by: jbonifacejr | last post by:
This is my first day here, so please be patient. I do not know how to search very well so the search I tried to get the answer showed me topics from the year 2000 and they really don't cover what I...
1
by: Jeff | last post by:
I assume that this is an easy newby question... How can I conditionally force the code in a "if not page.ispostback sub" to run even if the page is posting back? More specifically, I have a web...
0
by: Andrew_Vodo | last post by:
Hi, I'm developning ASP.Net 2.0 application which will use Google Map. The page with Google Map uses master page. As Google map uses client-side script, the first problem is where do I have...
3
by: joelpollock | last post by:
I'm having trouble continuously page numbering a large report in MS Access. The report is made up of three separate Access reports which I join together at the end. In the past I have opened the...
5
by: =?Utf-8?B?TWF0Y29u?= | last post by:
Hello, I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a javascript function (myfunction) defined in the <headof that master page. Is there a way to run the function...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.