G
Geoff Collier
I have a form called frm_junk. On it there is a rich
text box called rtxt_output. I am having trouble
accessing this (or any) object on frm_junk from another
class. I have a class "test". When I tried to access
rtxt_output from "test" I got an error message indicating
that the protection level of rtxt_output did not allow
access. So, I converted rtxt_output to public. However,
when I try to type something like:
rtxt_output.Text="hello";
class "test" does not see rtxt_output. This is true even
if I try to use:
frm_junk.rxt_output.Text.
The error message I get is:
C:\Documents and Settings\Owner\My Documents\Visual
Studio Projects\junk\Form1.cs
(123): 'junk.frm_junk.rtxt_output' denotes a 'field'
where a 'class' was expected
Any enlightment on these access problems are greatly
apprediated, thanks.
text box called rtxt_output. I am having trouble
accessing this (or any) object on frm_junk from another
class. I have a class "test". When I tried to access
rtxt_output from "test" I got an error message indicating
that the protection level of rtxt_output did not allow
access. So, I converted rtxt_output to public. However,
when I try to type something like:
rtxt_output.Text="hello";
class "test" does not see rtxt_output. This is true even
if I try to use:
frm_junk.rxt_output.Text.
The error message I get is:
C:\Documents and Settings\Owner\My Documents\Visual
Studio Projects\junk\Form1.cs
(123): 'junk.frm_junk.rtxt_output' denotes a 'field'
where a 'class' was expected
Any enlightment on these access problems are greatly
apprediated, thanks.