.NET being a %^&^%

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Musty
    New Member
    • Feb 2008
    • 15

    #1

    .NET being a %^&^%

    Hello

    Currently im programming with VB.NET using Microsoft Visual Studio 2003.

    I'm trying to design and develop a small questionnaire of say, 10 questions, and then I want to also expand this into a huge module, with multiple choice questions.

    I took an idea from this forum before and that was to just have seperate panel controls, which I could 'hide' and 'unhide' when it comes to whatever question...

    So they way it would work is say you have the first panel which I give the name 'p1' and the second panel 'p2, and so on, so then I'd code a button control to say:

    Me.p1.Hide
    Me.p2.Show
    End Sub (etc)

    And it works fine, but for some reason on the seventh panel - it just goes a bit loony and skips a question, I've double, triple, and qudrauple checked the coding to see if I'm showing or hiding the wrong panels and it all seems fine, but for some reason the app decides to skip panels or just go completely haywire after displaying the seventh panel... If I take away this panel and the coding for it it works fine - I don't know why this is happening! Please help me its SERIOUSLY important and really will affect my future (its a very simply problem but trust me it will!)

    Thank you
  • Musty
    New Member
    • Feb 2008
    • 15

    #2
    Originally posted by Musty
    Hello

    Currently im programming with VB.NET using Microsoft Visual Studio 2003.

    I'm trying to design and develop a small questionnaire of say, 10 questions, and then I want to also expand this into a huge module, with multiple choice questions.

    I took an idea from this forum before and that was to just have seperate panel controls, which I could 'hide' and 'unhide' when it comes to whatever question...

    So they way it would work is say you have the first panel which I give the name 'p1' and the second panel 'p2, and so on, so then I'd code a button control to say:

    Me.p1.Hide
    Me.p2.Show
    End Sub (etc)

    And it works fine, but for some reason on the seventh panel - it just goes a bit loony and skips a question, I've double, triple, and qudrauple checked the coding to see if I'm showing or hiding the wrong panels and it all seems fine, but for some reason the app decides to skip panels or just go completely haywire after displaying the seventh panel... If I take away this panel and the coding for it it works fine - I don't know why this is happening! Please help me its SERIOUSLY important and really will affect my future (its a very simply problem but trust me it will!)

    Thank you
    Actually... It seems I have rectified the problem... God willing its working fine... for now... :S

    Thanks for any efforts guys/gals

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I would suggest using the TabControl object, then telling it to hide the "tabs" part.
      All the functionality for switching between them is built in, and at design time you get the ease of being able to "change" tabs so that you can create the GUI.

      Comment

      Working...