Results 1 to 4 of 4

Thread: Text Load From A Text File !!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2010
    Posts
    23

    Text Load From A Text File !!!

    Hy all,
    I tryng to say that,how can i load text in a text box or combo box.
    Can anyone help me????
    Thanks.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Text Load From A Text File !!!

    Welcome to the forums...

    Check this: http://www.vbforums.com/showthread.php?t=348141#file ...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Text Load From A Text File !!!

    Welcome to the forums.

    Presuming the file actually exists...
    Code:
    Open "c:\l0cal_h0st.txt" For Input As #1    
        Text1.Text = Input(LOF(1), 1)
    Close #1

  4. #4
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: Text Load From A Text File !!!

    Quote Originally Posted by Hack View Post
    Welcome to the forums.

    Presuming the file actually exists...
    Code:
    Open "c:\l0cal_h0st.txt" For Input As #1    
        Text1.Text = Input(LOF(1), 1)
    Close #1
    Hack, I must have stared at this code, going back and forth over the three posts, for at least 20 minutes. All that time spent trying to figure out how you knew the name of the text file that the OP wanted to input. Yeah, I finally, duh, saw it. You had me convinced that you were psychic!
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width