Today i needed to transfer a value from textbox on one form to a textbox on another. Know i know that it may sound simple which it is but i decided to look at how to do it properly. What i found was a very complicated ways of doing this so i just did it my way the simple way.
- Create a global variable that you can use for any string lets say gstr
- Pass the value of the textbox to the variable gstr = textbox1.text.
- On the other form add textbox1.text = gstr
No comments:
Post a Comment