阅读背景:

从类中调用方法

来源:互联网 

I have 2 Forms (Form1 and Form2) and a class (Class1). Form1 contains a button (Button1) and Form2 contains a RichTextBox (textBox1) When I press Button1 on Form1, I want the method (DoSomethingWithText) to be called. I keep getting "NullReferenceException - Object reference not set to an instance of an object". Here is a code example:I have 2 Forms (Form1 and Form2) and a class (C




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: