View Single Post
Old 10-05-2003, 06:37 PM   #5 (permalink)
Boner
Insane
 
Location: Plugged In
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.
Boner is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76