Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15672

How to pass values from one form to another form text box (Active form to inactive

$
0
0
I have the following requirement,

  • I have a text box in form1 to search for a specific item code. If found, form 2 will appear on top of form 1 (form 2 is not a MDI child and it is shown using .ShowDialog())
  • I want to find a specific value which is shown in the 2nd form (Item batch code) and pass it to the form1 batch code text box again during form2.dispose.
  • I tried using something like "form1.textbox1.text=form2.textbox1.text". But its not working.
  • But i noticed complete opposite of the the above scenario is possible (values can be shown in a new form (Not a opened form)).
  • What is the correct method for doing this?

Viewing all articles
Browse latest Browse all 15672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>