To Send Text To Wordpad Through Dotnet

Satyapriyanayak
Posted by Satyapriyanayak under VB.NET category on | Points: 40 | Views : 1105
Public Class Form1
Inherits System.Windows.Forms.Form

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
AppActivate("Document - wordpad")
System.Windows.Forms.SendKeys.Send("Welcome To Dotnet")
'Here we have to open the wordpad first and run the application otherwise error will occur
Catch ex As Exception
MsgBox(ex.Message)

End Try
End Sub
End Class

Comments or Responses

Login to post response