by Brandon (46 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 18th September 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
'open notepad by pressing the up arrow key, silly but works.
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Dim v_ms As Double
If KeyCode = vbKeyUp Then
MsgBox "Notedpad is now opening, click ok", vbOKOnly, "Notepad"
v_ms = Shell("notepad.exe", vbNormalFocus)
End If
End Sub