[.net] VB.NET, class question

Started by
1 comment, last by SticksandStones 18 years, 10 months ago
Ok, so assume that I have two classes in a namespace; one of those is the MainForm class, which has a richtextbox called rtb. Now, how could I, if at all possible, modify rtb.Text from this second class also in the namespace? I've tried inheriting, but it says that the MainForm instance, Dim'ed in the Main sub, is not initialized.
hippopotomonstrosesquippedaliophobia- the fear of big words
Advertisement
When you create an instance of the second class, pass it's constructor a reference to the rich text box.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.

Quote:Original post by Washu
When you create an instance of the second class, pass it's constructor a reference to the rich text box.


Thank you, it worked! :)
hippopotomonstrosesquippedaliophobia- the fear of big words

This topic is closed to new replies.

Advertisement