Click here to Skip to main content
15,891,828 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: sql problem Pin
Nic Rowan6-Oct-05 2:13
Nic Rowan6-Oct-05 2:13 
GeneralRe: sql problem Pin
abhinish7-Oct-05 19:02
abhinish7-Oct-05 19:02 
QuestionValidation for Dropdown list Pin
BORN...again!5-Oct-05 19:20
BORN...again!5-Oct-05 19:20 
AnswerRe: Validation for Dropdown list Pin
Gavin Jeffrey6-Oct-05 1:41
Gavin Jeffrey6-Oct-05 1:41 
QuestionCould some body know about ISAM Pin
Swiss Mantoro5-Oct-05 19:02
Swiss Mantoro5-Oct-05 19:02 
QuestionRE:VB.NET Pin
Larry J Williams5-Oct-05 13:36
Larry J Williams5-Oct-05 13:36 
AnswerRe: RE:VB.NET Pin
enjoycrack5-Oct-05 14:03
enjoycrack5-Oct-05 14:03 
QuestionInvoking a Control by its Name string? Pin
watagal5-Oct-05 9:03
watagal5-Oct-05 9:03 
Greetings!

I want to switch controls (panels) visibility by using their respective names (in variables). How can I get there from here:
Public prefPanel As Panel = New Panel()
Private Sub uxcPreferencesForm_Load(....) Handles MyBase.Load
    prefPanel = Me.uxcGeneralPnl    ' Startup Panel
    prefPanel.Visible = True
End Sub
Private Sub uxCatagoryTree_AfterSelect(....) Handles uxCatagoryTree.AfterSelect
    prefPanel.Visible = False       ' Hide Current Panel

    Dim path As String = uxCatagoryTree.SelectedNode.FullPath
    Dim arrPath As Array = path.Split("\")

    Dim panl As String = "uxc"      ' Formulate new Panel's name
    For i As Integer = 0 To (arrPath.Length - 2)
       panl += arrPath(i).ToString.Substring(0, 3)
    Next i
    panl += arrPath(arrPath.Length - 1).ToString + "Pnl"

    prefPanel.Name = panl       ' HERE IS WHERE I GET LOST
    prefPanel.Visible = True        ' Show New Current Panel
    uxHeadingLbl.Text = panl  'path
End Sub

The panels are all created (and designed) at compile time - they are invisible. Is there a way to handle this switching?

Thanks,
Karen

Nooobie to OOP and VB.Net 2005
Questionwhere is the syntax error!!!!! Pin
acheo5-Oct-05 8:11
acheo5-Oct-05 8:11 
AnswerRe: where is the syntax error!!!!! Pin
Richard_Wolf5-Oct-05 9:33
Richard_Wolf5-Oct-05 9:33 
AnswerRe: where is the syntax error!!!!! Pin
KaptinKrunch7-Oct-05 6:19
KaptinKrunch7-Oct-05 6:19 
Questionplease help printing & CD Writting Pin
ThangaDharma5-Oct-05 6:55
ThangaDharma5-Oct-05 6:55 
QuestionRetrieve Info from another form Pin
SoonerFan5-Oct-05 6:52
SoonerFan5-Oct-05 6:52 
AnswerRe: Retrieve Info from another form Pin
Anonymous5-Oct-05 8:40
Anonymous5-Oct-05 8:40 
GeneralRe: Retrieve Info from another form Pin
Anonymous5-Oct-05 10:59
Anonymous5-Oct-05 10:59 
AnswerRe: Retrieve Info from another form Pin
maxiachun6-Oct-05 19:59
maxiachun6-Oct-05 19:59 
Questionplease help Pin
Anonymous5-Oct-05 3:57
Anonymous5-Oct-05 3:57 
AnswerRe: please help Pin
Anonymous5-Oct-05 8:27
Anonymous5-Oct-05 8:27 
Questioncalculated field Pin
Anonymous5-Oct-05 3:47
Anonymous5-Oct-05 3:47 
AnswerRe: calculated field Pin
Anonymous5-Oct-05 8:36
Anonymous5-Oct-05 8:36 
QuestionHow to design Functioncall parameters ? Pin
immes4-Oct-05 22:40
immes4-Oct-05 22:40 
QuestionRegarding Application Crash Pin
Mohamed Ishak4-Oct-05 21:19
professionalMohamed Ishak4-Oct-05 21:19 
QuestionCOMBO BOX Pin
nor_izyani4-Oct-05 20:02
nor_izyani4-Oct-05 20:02 
AnswerRe: COMBO BOX Pin
Dave Kreskowiak5-Oct-05 3:44
mveDave Kreskowiak5-Oct-05 3:44 
GeneralRe: COMBO BOX Pin
AndrewVos6-Oct-05 8:49
AndrewVos6-Oct-05 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.