Transfer string while typing
-
Does anybody know if it is possible to display the contents of a TextBox in one form while typing it into another? Example: While typing in frm1, txt1 I would like the text to be displayed in frm2 txt2. Both forms will be open. Thanks. Brad
-
Does anybody know if it is possible to display the contents of a TextBox in one form while typing it into another? Example: While typing in frm1, txt1 I would like the text to be displayed in frm2 txt2. Both forms will be open. Thanks. Brad
the way i know is .. 1- Declare the form you want the text to be viewed on in this form .. Dim Frm2 as New Form2 then in the "On key press" Action of the textbox you type in .. let the text value of the textbox you want to show the text on .. in the new form ( Frm2 ) = the text value of the textbox that you are typing in .. Frm2.TextBox1.text=TextBox1.text .. i hope this works with you .. لا اله الا الله محمد رسول الله
-
the way i know is .. 1- Declare the form you want the text to be viewed on in this form .. Dim Frm2 as New Form2 then in the "On key press" Action of the textbox you type in .. let the text value of the textbox you want to show the text on .. in the new form ( Frm2 ) = the text value of the textbox that you are typing in .. Frm2.TextBox1.text=TextBox1.text .. i hope this works with you .. لا اله الا الله محمد رسول الله
I thought that would/should work also but I haven't had any luck... I'm going to keep playing around with it and see if I'm just forgetting to do something. Thanks Brad
-
I thought that would/should work also but I haven't had any luck... I'm going to keep playing around with it and see if I'm just forgetting to do something. Thanks Brad
What i would do is first creat a public variable in a module. Something like public a as string. then on form1 after they click whatever button needed to get to form to do this. a=texbox1.text then on the form2 load procedure do textbox2.text = a hope this is what you are talking about and hope it helps if you have any questions about the above code feel free to email me at iamydd@bellsouth.net