I'm a bit stuck. I've tried googling but my google-fu appears to be lacking
I've finished almost everything I need to do in this program, I'm just stuck and don't know the formula/code for this one thing
three forms.
form1 is the parent form, form2 and form3 are child forms
form1 has a menu strip that will make form2 and form3 display when selected
form2 has three textboxes, textbox1, textbox2 and a hidden textbox3 one button that gets the average value of both textboxes and displays/saves it on textbox3
form3 has one, textbox1
the value of which should be the average of the two textboxes above
this is the code that I tried on a button in form 2 to 'save' the values. doesn't work
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
textbox3.Text = Val(textbox1.Text) + Val(textbox2.Text)
textbox3.Text = Val(textbox3.Text) / 2
Form3.textbox1.Text = Me.textbox3.Text
End Sub
i'm suspecting i'm not using the right code, since the above works for two non-child forms that are already displayed
i'm sorry if i can't describe the situation properly, english isn't my main language.
any assistance would be appreciated