-
January 4th, 2011, 04:48 AM
#1
Specifide line number
Hey.
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)
-
January 4th, 2011, 05:51 PM
#2
Re: Specifide line number
I can not quite understand what you are trying to ask.
Always use [code][/code] tags when posting code.
-
January 9th, 2011, 06:26 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|