AllExperts > Experts 
Search      

Visual Basic

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Visual Basic Answers
Question Library

Ask a question about Visual Basic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ravindra
Expertise
visual basic application programming from design to access information, sql, engineering and commercial applications. access databases, excel. Optional: 1)a large number of people want me to do work which takes some time and effort. Pl.note that i would like to be paid for such work. 2) if you want me to spend quality time and do special work, i expect to be paid a reasonable price for my time. 3) if you are pleased with my reply you could consider a donation of 1$. 4) you can visit my website http://ravindra.coolpage.biz (under constrn)

Experience

Past/Present clients
project work for a Norway company, and a Canadian company completed. Freelance Project work and Teaching
teaching vb

 
   

You are here:  Experts > Computing/Technology > Basic > Visual Basic > Visual Basic 6

Topic: Visual Basic



Expert: Ravindra
Date: 7/1/2008
Subject: Visual Basic 6

Question
Hello sir ,
I am a beginner in visual basic 6.
I am currently doing project in visual basic 6.
In that  I want to save data in notepad from textbox directly and receive data from notepad to particular textbox.
How can i do that?
Could you Please help me out?
Thank you

Answer
Option Explicit
Dim entry As String
'this puts the text into the textfile
Private Sub Command1_Click()
Open "C:\Rtest1.txt" For Output As #2 ' WRITE TO FILE
Print #2, Text1

Close #2
End Sub

' this puts the string into the textbox
Private Sub Command2_Click()
Open "C:\Rtest1.txt" For Input As #3 ' WRITE TO FILE
Line Input #3, entry
Text1 = entry
Close #3
End Sub


Ravindra M.G.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.