Quote:
Originally posted by Fallon
Alright, so I recently started playing around with Visual Basic. What I am hoping to do is create a form that'll write something to a file. Then, you need to open another form which will also write something to that file. The problem is the first form allows the person to specify the filename, so I need the second form to reference from the first form.
Is there a way to do it? Or am I SOL and need to find another way to do it?
|
If the first form that takes the filename is named "form1", and it has a textbox that accepts the filename, then try the following from the second form:
Dim filename as string
form1.txtFilename.text = filename
The first form will still need to be loaded. If it isn't, you'll need to pass it as a variable somewhere.