[.net] VB.NET, class question
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.
When you create an instance of the second class, pass it's constructor a reference to the rich text box.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement