Hi all,
I have a small Vb application and I want to open Wordpad and transfer the text of a text box when you double click on it.
Can anybody please help?
Thanks a lot,
Chris
Printable View
Hi all,
I have a small Vb application and I want to open Wordpad and transfer the text of a text box when you double click on it.
Can anybody please help?
Thanks a lot,
Chris
VB Code:
Private Sub Command1_Click() Open App.Path & "\textfile.txt" For Output As #1 Print #1, Text1.Text Close #1 Shell "notepad " & App.Path & "\textfile.txt", vbNormalFocus End Sub
This is working fine with notepad. But not with wordpad, I don't know why. May be somebody else can help.