Hi!
How do I use and get the MS scripting control?
Printable View
Hi!
How do I use and get the MS scripting control?
to add it to your project:
Press Ctrl+T and check Microsoft Scripting Control, OK
If it's not there, get Msscript.ocx from anyone
for an example
add two textboxes and a mscript control, and add paste code:
Code:Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
If KeyCode = vbKeyReturn Then
ScriptControl1.ExecuteStatement Text1
If Err Then Text2 = Err.Description Else Text2 = ""
End If
End Sub
Hi I have visual basic 5 and I have "Microsoft Script control 1.0" but when I click on it it returns an error than this control cannot be loaded.
Any help again?