Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    View the resource names...Problem


    UnLucky
     Share

    Recommended Posts

    Hey last day i tried to make a program that can view document files...You only need to put the files in a special folder then the programs start it will view all the documents in a listbox(lstDocument).

     

    Pic main:

    starth.jpg

    and the problem i have is that then i have add the read the files in the folder and then it add each document to the lstbox it only shows random chars fgt29

    like this:

    inactionu.jpg

     

    adn now for my code is:

     Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    	For Each item In My.Resources._Imports
    		lstDocument.Items.Add(item)
    	Next
    End Sub

     

    So whats the problem?

     

    where should i have it ima using my resources now...will i t maby works if i put in a special directory?

    Link to comment
    Share on other sites

    Load File :

    Dim FileContent As String = My.Computer.FileSystem.ReadAllText("Test/test.txt") 'Change directory wink.gif!
    TextBox1.Text = FileContent 'Loads the .txt file in Textbox1

     

    Save File :

    Using writer As New System.IO.StreamWriter("Test/test.txt")
    For Each line In "A"
    writer.Write(TextBox1.Text) 'Will save the Textbox1.text in the test.txt
    Next
    End Using
    

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...