Results 1 to 11 of 11
  1. #1
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47

    how to make a text over a few lines ?

    Hey,
    I want to make a button on this i press and then comes on a text field a code,
    but this code is over a few lines ...
    VB6 can only make one line -.-
    How can i make it over a few lines ?
    Thx

  2. #2
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    ugh....Richtextbox.text = OpenUpFile
    Its quite basic.
    =\ This is not the VB section.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  3. The Following User Says Thank You to radnomguywfq3 For This Useful Post:

    bohnenbong (11-09-2007)

  4. #3
    Threadstarter
    Advanced Member
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47
    Sry,
    But what must i write then ?
    Richtextbox.text = OpenUpFile .... ?
    Or with which must i change OpenUpFile ?

  5. #4
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    VB6.0

    Code:
    open "C:\WhatEverTextFileYouWantToOpen.txt" for output #1
    input #1, FilesData
    close #1
    Richtextbox1.text = FilesData
    VB.net
    Code:
    Include System.io
    Code:
    Dim OpenUpFile as new streamreader("C:\W\eFile You WannA Open.txt")
    Dim Tempstring as string = ""
    Tempstring = OpenUpFile.ReadToEnd()
    =\ It was hard to write that code, I have gotten so used to adding ';' at the end of almost everything.
    Last edited by radnomguywfq3; 11-09-2007 at 09:24 AM.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  6. The Following User Says Thank You to radnomguywfq3 For This Useful Post:

    bohnenbong (11-09-2007)

  7. #5
    Threadstarter
    Advanced Member
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47
    Does not work -.-
    Here is an syntrax error!
    open "C:\....\.....\Myfile.txt" for output #1
    Or when it works comes this

    Ok well now the code is...
    Private Sub Command2_Click()
    Open "C:\Dokumente und Einstellungen\******\Eigene Dateien\Module Gen\Module1.txt" For Output As 1
    Input #1, DataFile
    Close #1
    Richtextbox1.Text = DataFile
    End Sub
    Last edited by bohnenbong; 11-09-2007 at 09:52 AM.

  8. #6
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    =\ My bad typo
    Its Open "blublublu" for output as #1

    C++ is making me forget VB =\

    You should learn how to debug. Because when you get to C++ it gets alot fucking harder.

    *edit*
    Just install VB.net. Its my first language. Then its VB6.0, then C++. I can help you much better if your using VB.net
    Last edited by radnomguywfq3; 11-09-2007 at 09:58 AM.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  9. The Following User Says Thank You to radnomguywfq3 For This Useful Post:

    bohnenbong (11-09-2007)

  10. #7
    Threadstarter
    Advanced Member
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47
    Yes i fixed it bevore you write but ,
    what is with the new error ?
    Sry i go a little bit on your nerves :P

  11. #8
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Try
    open "blublublu" for input as #1
    Input #1,FileData
    close #1

    and if that doesnn't work then try

    open "blublublu" for output as #1
    Input #1,FileData
    close #1

    You have to use the '#' sigh..



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  12. The Following User Says Thank You to radnomguywfq3 For This Useful Post:

    bohnenbong (11-09-2007)

  13. #9
    Threadstarter
    Advanced Member
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47
    Now this error :P
    By Input for Output at the first line!

  14. #10
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    -_-. VB6.0 is old and out-dated. Half the error messages I don't understand. I highly suggest you move to VB.net, as a learner, attempting to learn VB, you should be learning with VB.net, not VB6.0.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  15. The Following User Says Thank You to radnomguywfq3 For This Useful Post:

    bohnenbong (11-09-2007)

  16. #11
    Threadstarter
    Advanced Member
    bohnenbong's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    On the toilette^^
    Posts
    222
    Reputation
    10
    Thanks
    47
    Ôk thx for spend time for this

Similar Threads

  1. How to make a game?
    By Dave84311 in forum General
    Replies: 4
    Last Post: 09-12-2006, 12:33 AM
  2. How to make a working NFV Hack
    By System79 in forum Game Hacking Tutorials
    Replies: 1
    Last Post: 09-04-2006, 04:56 AM
  3. How to make the server run
    By wowhaxor in forum Gunz General
    Replies: 3
    Last Post: 05-25-2006, 09:59 PM
  4. How to make a Zombie
    By arunforce in forum Art & Graphic Design
    Replies: 2
    Last Post: 01-27-2006, 08:07 AM
  5. How I make wallhack?
    By RaidenDXX in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-23-2006, 01:28 PM