Anybody good with VB.NET ?

Discussion in 'Web Design & Coding' started by GEN3RIC, Jul 29, 2006.

  1. GEN3RIC

    GEN3RIC Moderator Folding Team

    Woodbury, MN
    So this is my current concentration in school in Visual Studio.NET 2003 It's a windows app in Visual Basic.NET

    I made a simple program that called a module I made.

    Inside the module I had options for a group box with radio buttons.

    The project was named firstBat, and I changed a label based onthe radio buttons (called displayLbl), so inside the module you see this.

    [B]Select Case HelloLanguage
       Case "English"
          firstBat.displayLbl.Text = "text in english"
       Case "EspaƱol"
          [/B][B]firstBat.displayLbl.[/B][B]Text = "text in spanish"
       Case "Deutsch"
          [/B][B]firstBat.displayLbl.[/B][B]Text = "text in german"
       Case Else
          [/B][B]firstBat.displayLbl.[/B][B]Text = "Error/Error/Fehler"
    End Select
    But for some reason it was saying that firstBat.displayLbl was wrong. Does this have to do with renaming Form1 ? I renamed it but I think Visual Studio still decided to go and generate code with Form1 in mind, not firstBat ... what is going on!?
  2. dave holbon

    dave holbon Moderator

    London England
    What have you assigned HelloLanguage, is it a variable and if so of what type? Have you edited the autocode generated by the .NET environment as this is a no.. no....

    Never change any of the autocode generated by the .NET environment unless you are 100% sure what you are doing!