Execute Raw commands typed in a textbox?

techwiz24

Well-known member
Joined
Jun 2, 2010
Messages
51
Programming Experience
Beginner
I am working on a "de-bugging" back-end sorta thingy for my program, and I have a "dll" that executes most of the work for the program. For the ease of tech-support, I plan on trying to impliment a hidden back-door into the engine that is password protected and activated by a key-press. What I want to do is:

when the enter key is pressed, have the dll run the sub that is listed in the enter key, for example:

In the dll:
VB.NET:
Expand Collapse Copy
Public Sub msg(ByVal text as string)
     MsgBox(text)
End Sub

In the "back-door":
VB.NET:
Expand Collapse Copy
Sub TextBox2KeyPress(sender As Object, e As KeyPressEventArgs)
		If e.KeyChar = Chr(13) Then
			'What comes next?
		End If
	End Sub

Any suggestions?
 
You can either have a predefined list of commands stored in the app, or convert the entered commands strings into vb.net code, you can search google on how to do that..
 
Back
Top