I have been wondering how to do this for a while, and i'm sure it can't be that complicated. How can I execute code from a textbox when i hit a button.
Example:
There is a form with a textbox and a button
The user types in "msgBox("Hello")" in the textbox
The user presses the button
A message box appers with "Hello" as it's text.
The user could do any type of code to happen when they hit the textbox.
How would i be able to do this? So basically:
Private Sub Button1_clicked(blah blah, blah) Handles Button1.click
'Code from textbox goes here
End Sub
Thanks in Advanced
--decrypt
Example:
There is a form with a textbox and a button
The user types in "msgBox("Hello")" in the textbox
The user presses the button
A message box appers with "Hello" as it's text.
The user could do any type of code to happen when they hit the textbox.
How would i be able to do this? So basically:
Private Sub Button1_clicked(blah blah, blah) Handles Button1.click
'Code from textbox goes here
End Sub
Thanks in Advanced
--decrypt
Last edited: