Options for passing values between forms...

I'm a VB Noob and have just started my first program with VB.  What are the options available for passing a value from one form to another?  Also, if anyone can direct me to a good reference and/or tutorial site, I can probably answer alot of my own questions there.  

Thanks!
jeremycaseAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aelatikCommented:
For example

Form2 you have :

Public MyString as string

you can access the value from form1 by typing

msgbox form2.MyString

ps. For tutorials type 'Visual Basic Tutorials' in www.google.com ( It will give many results )
0
JacamarCommented:
Add a new module to your program.  In that module, do

Public stString as String

You can now use stString in any forms in that project.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jeremycaseAuthor Commented:
Thanks!
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

JacamarCommented:
Funny that it was a B grade............did it do what you wanted?
0
jeremycaseAuthor Commented:
yes it did...I'm sorry...Was my first time...forgive the virgin?
0
JacamarCommented:
yeah.....I forgive.....it's just that usually if the code does what you were after then and A grade would be assigned.  If the code led you towards getting the answer (like if the code wasn't perfect but it aided you towards the answer) then usually a B, and if the code wasn't very good at all, but it did contain something that opened you up to trying something else that led you to the answer, then a C would be good.

No worries though.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.