To Send Text To Wordpad Through Dotnet

Posted by Satyapriyanayak under VB.NET category on | Points: 40 | Views : 1856
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
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

End Try
End Sub
End Class

Comments or Responses

Login to post response