How can you reference a textbox from a vb.net windows application. I am trying to pass a variable to the script file. I have a textbox on a windows application form and a button and when the user clicks the button I want to run a script which will refernce the textbox inorder to get the value from it.
How do I refernce a textbox from a script file?
Collapse
X
-
which script???Originally posted by Sheena777How can you reference a textbox from a vb.net windows application. I am trying to pass a variable to the script file. I have a textbox on a windows application form and a button and when the user clicks the button I want to run a script which will refernce the textbox inorder to get the value from it.
in javascript simply......
document.getEle mentById("TextB ox1").value
if you want this value to be passed to a function on a buttob click(or any event u want) then try something like
onclick=myFunct ion(Textbox1.Te xt)
Comment