I want to write in Notepad. In Notepad, the first line should have two Heading Columns. First column’s Name is “SNo” and Second Column’s Name is “Patient’s Names”
Now after opening the Visual Basic form, I will enter in Two textboxes named as SNo and Patient’s Name. So these two values SNo and Patient’s Name will be copied from textboxes and pasted in Notepad under the Headings SNo and Patient’s Name respectively in Notepad.
You can look into VB6’s SendKeys command.
I have to question why you want to do this, though; it sounds like you’re trying to write a comma delimited file (.csv) of sorts, and would be much better off using standard File IO, then using a Shell command to open the file if you need it displayed in Notepad. Normally, using SendKeys is frowned upon as bad practice and insecure.
As a side note – please try to figure it out first, then come here with questions and everything you’ve tried so far. This will give us some idea as to what you’re trying to do, and prevent you from claiming you have a Textbox named
Patient's Name.