Results 1 to 5 of 5

Thread: Placing data

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Placing data

    Hey I'm pretty new to this and was just wondering what the easiest way of placing data into an edit box at runtime is. The program that I am running is retreiving data on a CAN line and I need to display the data line by line in a edit box to view the messages being recievd at runtime. any help would be appreciated.

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

    Re: Placing data

    Welcome to the forums.

    Two questions:

    What is an Edit Box?

    What is a CAN line?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Re: Placing data

    ok...
    maybe I'm confuse by the terms I'm trying to use. When i say edit box i guess i just mean a white field that the program can put data into durring runtime.
    Can line dose not matter for the point of this thread but it is a controler area network. I am getting information, retrieving it with my program and now i need to spit it out in a pretty format.

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

    Re: Placing data

    So, if I'm reading your correctly, the program you have is already retrieving the data
    Quote Originally Posted by talltubatom
    The program that I am running is retreiving data on a CAN line
    So, all you need to do is redirect the data from where ever it is going now into a textbox. Is that what is needed here?

    How does your program retreive the data?

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

    Re: Placing data

    Use the below code:
    Text1.Text=Text1.Text & vbNewLine & CANlineText
    You better use the code Text1.Locked=True at runtime(place it in the form's load event), so that the messages in the textbox couldnot be editted by anyone...

    Here in the above code, CANlineText is the data retreived using your CAN.... (I uses it as a string variable, because I don't know about CAN)
    I think the above one will help you....

    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,...

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