Anybody good with VB.NET ?

GEN3RIC

OSNN Senior Addict
Joined
4 Apr 2005
Messages
634
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.

....
Code:
[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
[/B]

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!?
 
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!
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back