Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Shared Variables in VB.NET Not Working
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01026320
Message ID:
01026425
Vues:
20
Hi ya Rick,

FINALLY got it working!!!!!

It was kind of related to what you were talking about relative to sharing and public and references.

What I ended up doing to get it working was more research online. I found an article someone had written that was supposed to make the job a whole lot easier, but it wasn't because the one piece I needed (the module that made all forms public) was not being incorporated into my project because it was not showing up on my choices for Starting Object under the Solutions Explorer when I right-clicked to go to Properties on the name of my project.

The reason it was not showing up in the choices was I guess because I did not have a Sub End Sub routine in the Module. I don't understand what effect that would have, but it had a huge effect so I made the module look like this and everything showed up and worked.

Module Module1
Public F1 As New Form1()
Public F2 As New Form2()
Public F3 As New Form3()

Sub main()
F1.ShowDialog()
End Sub
End Module

I have to see why adding the Sub main() fixed everything and made my Module1 show up when I right-clicked on my project name in the Solutions Explorer window then went to Properties and saw it there under the Starting Object and made it #1.

I also went into the textboxes on each for and referenced them as you had suggested. And made the textboxes all PUBLIC in their modifiers.

I added some Refresh commands here and there, but gotta weed out the excess commands now that it works and see if I even need them at all.

Take 'er easy and thanks for helping. Whew! What .NET nightmare for a .NET beginner. I think I need a safety .NET to catch me!
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform