Could you please tell which control parents each panel? Please make sure
that panels are parented by the corresponding tabpages.
Thank you,
Sergiy.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: compact framework tabcontrol problem
| thread-index: AcQBJeRuDX8vkSqxTnGPEUqFFdDR9w==
| X-Tomcat-NG:
microsoft.public.dotnet.framework.compactframework,microsoft.public.dotnet.f
ramework.windowsforms.controls
| From: "=?Utf-8?B?am1yaWVtYW4=?=" <(E-Mail Removed)>
| Subject: compact framework tabcontrol problem
| Date: Wed, 3 Mar 2004 05:46:13 -0800
| Lines: 27
| Message-ID: <AB266F88-61FE-4B6E-BD99-(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups:
microsoft.public.dotnet.framework.compactframework,microsoft.public.dotnet.f
ramework.windowsforms.controls
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms.controls:14774
microsoft.public.dotnet.framework.compactframework:47526
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Call me a newbie... hopefully this will be an easy answer for you
experienced coders. I have a simple tabcontrol with 3 tab pages. my problem
is that I use the "selected_Index_changed" event, when I select a tab at
runtime the panel that I associate with each tab page will not be visible.
The only panel that I can get to display is the initial one I created. Each
additional one will not be visible no matter what I try. Here is some of my
code. Is there something that I need to do besides changing the
panel.Visible property to TRUE? and changing changing the prior panel to
FALSE.
Private Sub TabControlTimeTracking_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TabControlTimeTracking.SelectedIndexChanged
Select Case TabControlTimeTracking.SelectedIndex
'Selecting the Add Asset page
Case 0
MsgBox("ADD")
PanelVIEWWeeklyTT.Visible = False
PanelADDTodayTT.Visible = False
PanelADDTTCODES.Visible = True
Case 1
MsgBox("VIEW")
PanelVIEWWeeklyTT.Visible = True
PanelADDTodayTT.Visible = False
PanelADDTTCODES.Visible = False
'tells if the label on panel is visible
MsgBox(Label5.Visible)
Case 2
MsgBox("Add today")
PanelVIEWWeeklyTT.Visible = False
PanelADDTodayTT.Visible = False
PanelADDTTCODES.Visible = True
End Select
End Sub
|
|