VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a value in my parent form which i want to share to my Child form. But i cannot get it to do this for me since i just started learning VB two months ago.
there are many ways to share values, depending on the complexity of the application.
The easiest way (because you are just learning) is to declare the variable Public in the MDI form:
Public MyValue as Whatever
You can access this value everywhere in the code using
Ok thanks
now I have another problem
I have the text on a button thats randomized and want to share that text to another form
so would i write something like