473,836 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set tabbed page to invisible

kev
Hi folks,

Firstly, a great thanks to all members of this group who has been of
great help to me. Due to your help, i have been able to proceed with my
project.
Now, i have another question.Please help
I have a form with 10 tabs on it. I use this tabbed
form"frmSL1Regi stration" to display all the records that have been
submitted. My question here is how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlis t"
The controls on it is text
box-"Issue","Respon sibility","Comp letionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.
Thanks in advance:)

Dec 15 '06 #1
3 3885
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlis t"
The controls on it is text
box-"Issue","Respon sibility","Comp letionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.
Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchl ist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCur rent()
If (IsNull(Me.txtI ssue) = True) then
Me.tabMain.pgLe vel1Punchlist.V isible = False
Else
Me.tabMain.pgLe vel1Punchlist.V isible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC

Dec 15 '06 #2
kev
Hi King Ron,

I tried the method below but it doesnt hide the tabbed page when the
textbox issue is null.
can you please help?

p/s: sorry this seems like an old issue but i just managed to get my
hands on it as i was handling another short project.

Thanks.

King Ron wrote:
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlis t"
The controls on it is text
box-"Issue","Respon sibility","Comp letionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.

Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchl ist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCur rent()
If (IsNull(Me.txtI ssue) = True) then
Me.tabMain.pgLe vel1Punchlist.V isible = False
Else
Me.tabMain.pgLe vel1Punchlist.V isible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC
Jan 12 '07 #3
kev
Hi King Ron,

I have tried d method that you suggested below but it is not working,
the tabbed page is still visible althought the textbox is empty.

Please help.

p/s: sorry for very late respond, i was assigned another project thus
this was on hold.

Thanks.

King Ron wrote:
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlis t"
The controls on it is text
box-"Issue","Respon sibility","Comp letionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.

Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchl ist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCur rent()
If (IsNull(Me.txtI ssue) = True) then
Me.tabMain.pgLe vel1Punchlist.V isible = False
Else
Me.tabMain.pgLe vel1Punchlist.V isible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC
Jan 12 '07 #4

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

Similar topics

3
2733
by: David | last post by:
I have a problem that I cannot delete components that are placed on a Tabbed page in Visual Basic.Net 2003. (OS = Windows 2000 Professional) The form uses a Tab Control with several pages. I have a Panel on the page and then some combo boxes, labels and text boxes. For some reason, I cannot delete any of these controls from the form (not even the Tab control istelf). The Delete and Cut options in the right click menu have been ghosted...
1
1269
by: Dave | last post by:
I need to set a default Selected Item in combobox on a tabbed page which is on tabbed page #2. It works on page 1 but not page2. -- L. A. Jones
3
2776
by: kev | last post by:
Hello, I posted a question a while ago on tabbed pages, how to set it to invisible when the text box is empty.It was answered by Rick and the code ran perfectly. However, i tried using the same code for another scenario and it gives me compile error:method or data member not found. My scenario is i have a nested tab page.My main tabbed page has 4 tabs, About, SafetyLevel1,SafetyLevel2,SafetyLevel3. Inside this main, i created a...
0
7522
NeoPa
by: NeoPa | last post by:
Originally posted by Missinglinq: The first thing to remember is that Tabbed Pages are all part of a single form; think of it as a really long form turned on its side and folded on itself. Because it is all one form, references to contols on any page are done in the same manner as if they were all on one single screen. Create a form in Design View. Goto the toolbox and click on the Tabbed Control icon; it actually looks like several...
0
1035
by: jpmcafee | last post by:
Hi guys, I would like to create 10 tabbed pages with the same checkboxes (form)in each one of them, So what I think I will do is create a tabbed form place 10 tabs accross the top and add in all of the nccessary forms etc for each page. The i would like to show only the first three tabs. I would like to have an "add new button" that when clicked would enable one at a time the remainder of the 7 pages depending on how many...
0
1062
by: Shane Jones | last post by:
I began my .Net training with VS .Net 2000 (version 1.0) -- on the toolbar there is a multi-tabbed control (which allows you to place differing content on each tab, and display content associated with each seperate tab) -- I'm NEW to Visual Studio .Net 2005, and I can't seem to locate this multi-tabbed control on the toolbar. Does anyone know if this is a standard control for 2005, and will the Multi-View control offer the same...
8
3993
by: jackrabbithanna | last post by:
I'm using a ajax script the uses a tabbed div that fetches a remote webpage to display for each tab.when clicked. the script works fine except for one thing. The content of the page i want to display is a javascript image gallery. i am trying to do multiple galleries on one page. When the page loads the default tab loads the gallery correctly. But when I click on the next tab the javascript gallery fails. The script is exactly the same...
0
1291
by: ARC | last post by:
The new tabbed interface in access 2007, has led to one interesting problem. With a report shown in preview mode, and maximized, it just becomes a new tab. The user can click back over to the form, and if they make changes, they expect it to appear in the already previewed report (which it won't). So the question is how to prevent this. Either make every other standard form invisible in a report's On-Open event, or find another way? I...
1
1103
by: ArunDhaJ | last post by:
Hi, I'm in need of help for solving the following problem: I've a page with two div tag as follows: <div id="divNormalView" runat="server"> <asp:listbox id="listSelectedMembers" Runat="server"</ asp:listbox> </div> <div id="divPrintPreview" runat="server"> <asp:datagrid>
0
9656
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10821
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10575
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9358
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6975
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5812
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4443
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4001
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3102
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.