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

Change Value Of A Textbox Whose Name Is Derived from text in another textbox!

$
0
0
Hi All

Hope you are all well!

I am a little stuck with a particular application I am developing within Visual Studio and hope someone can help.

What I would like to know is how can I populate a textbox whose name is derived from the text from another textbox.

For example, I have a textbox called M1Y, when the user clicks on this, the text of textbox1 becomes "M1Y" (I have this working). What I want the programme to then do is populate the textbox derived by MID(textbox1,1,2) with a value I specify.. in the example above:

I want MID(textbox1,1,2).text = 6 (which basically equates to MY.text = 6). I have lots of textboxes on my form and I don't want to put a "on click" statement on each one.

Hope this makes sense and thank you in advance.

Viewing all articles
Browse latest Browse all 15713


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