Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB NET] copy text from a first richtextbox another richtextbox the 2nd form ?

hello,
I would like, how to copy a richtextbox my first form to a form in a 2nd richtextbox ?
Thanks. Great !
Kulls
(May 16, 2016 09:20 AM)ᴘʜƎx Wrote:  Something like this?

richTextBox1.Text = form1.richTextBox1.Text;

This should work just fine.
Just use Propertys or Events,
exposing controls to the outside isnt a good way.
I can not. I tried to put this into a timer.


It's good I got there !😁
Thank you very much guys !✌
C# is a OOP Language try to learn about Classes,Propertys.....
It will open your eyes :)
(May 16, 2016 09:45 AM)iNCEPTiON_V Wrote:  C# is a OOP Language try to learn about Classes,Propertys.....
It will open your eyes :)

That's kind of off-topic. Lol. VB.NET is an OOP language as well.
(May 16, 2016 10:02 AM)Malum™ Wrote:  That's kind of off-topic. Lol. VB.NET is an OOP language as well.

No shit sherlock didnt know that. I told him to use properties or events for his Problem since its the proper way to do it.
(May 16, 2016 10:07 AM)iNCEPTiON_V Wrote:  No shit sherlock didnt know that. I told him to use properties or events for his Problem since its the proper way to do it.

Member controls are public by default, what you suggest is a more Java approach.
(May 16, 2016 10:07 AM)iNCEPTiON_V Wrote:  No shit sherlock didnt know that. I told him to use properties or events for his Problem since its the proper way to do it.

Why be an ass? You suggested C# yet he asked for help with VB.NET?
(May 16, 2016 10:27 AM)Odus Wrote:  Member controls are public by default, what you suggest is a more Java approach.

Its a Object oriented approach :) having a class with properties would be the common way, or a event with custom EventArgs to pass parameters.
(May 16, 2016 10:33 AM)iNCEPTiON_V Wrote:  Its a Object oriented approach :) having a class with properties would be the common way, or a event with custom EventArgs to pass parameters.

Would you show me an example on how you'd do it through encapsulation & events? Dot notation is OO already.
Odus, you want a few bucks to change ISP's?
(May 16, 2016 03:46 PM)He B TeMy Wrote:  Odus, you want a few bucks to change ISP's?

Very kind of you but this ISP is the only one in my area, so I'm stuck with it. 😭
richTextBox1.Text = form1.richTextBox1.Text;


richTextBox1.Text = form1.richTextBox1.Text; ,,,,


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by PerileosMay 11, 2020 09:21 PM 24 615 May 11, 2020 09:21 PM
Last Post: Alien
[Shell] by FUC K YOU FBIOct 20, 2019 05:50 AM 10 305 Oct 20, 2019 05:50 AM
Last Post: FUC K YOU FBI
[C#] by Iera NamhorunJun 26, 2019 04:28 AM 4 239 Jun 26, 2019 04:28 AM
Last Post: Iera Namhorun