Hello Chris
In formB, modify the constructor this way:
Public Sub New(myString as String)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeCompo nent()
'Add any initialization after the InitializeCompo nent() call
me._myString = myString
End Sub
Private _myString as String
Then when calling formB from formA do this:
Dim Myform as New FormB(StringVal ue)
--
Ibrahim Malluf
http://www.malluf.com
=============== =============== =============== =
MCS Data Services Code Generator
http://64.78.34.175/mcsnet/DSCG/Announcement.aspx
=============== =============== =============== =
Pocket PC Return On Investment Calculator
Free Download
http://64.78.34.175/mcsnet/kwickKalk1.aspx
"Chris S" <ce**@earthlink .net> wrote in message
news:eh******** ******@TK2MSFTN GP10.phx.gbl...
I'm relatively new to VB.NET and have what's probably a very simple
question. I'm trying to get one form to access (view and modify) data on
another form. For example, the startup object is a form called "FormA".
This form contains a string called "ImAString. " FormA then opens FormB.
How can FormB read from/write to "ImAString" ?
Thanks for your help,
Chris S.