Specifide line number
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Specifide line number

  1. #1
    Join Date
    Jan 2011

    Specifide line number


    I will try to Explain myself correct.

    I have a Form1

    In the form1 i have 3 TextBox

    And i have a Form2
    in a Form2 i have a TextBox i call it Preview and Textbox its set to multiline.

    that i want to specifide the TextBox1 , 2 and 3 to specifide line number.

    Then i write some text in Textbox1 then its shell copy the text over to my Textbox in Form2.
    But i dont want to be the first line it shell be the thirt line
    And Texbox 2 shell be the Seven line

    I'll also be able to change text in TextBox1 to something else
    when i change the text so it changes into Textbox in form2. not copy Replace that line.

    I have try and try but i cannot find out how to doit.

    hoping that someone here could help me on the right track(way)

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: Specifide line number

    I can not quite understand what you are trying to ask.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jul 2000
    Milano, Italy

    Re: Specifide line number

    you should have an object under the hood, shared between form 1 and form 2. The object should hold the lines of texts like an array for all the textboxes. Depending from what you really want in the form2 texbox, you could assign to that textbox the whole array content or write a method in your object under the hood that should be responsible of filling text property of the form2 textbox.
    ...Unless I too have not understood what you are really trying to get...
    ...at present time, using mainly Net 4.0, Vs 2010

    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center