'form1' is a type in 'ARMS_JC' and cannot be used as an expression.

  • Thread starter Thread starter Cirene
  • Start date Start date
C

Cirene

What is this error trying to tell me:

'form1' is a type in 'ARMS_JC' and cannot be used as an expression.

I'm just trying to access controls in form1.
 
If your form has a textbox on (Textbox1) then you would use the following:
form1.Textbox1.Text = "Hello"
or
strLastName = form1.Textbox1.Text

Also the controls you want to access outside the forms needs to have their
access level set to public.
 
Cirene said:
What is this error trying to tell me:

'form1' is a type in 'ARMS_JC' and cannot be used as an expression.

I'm just trying to access controls in form1.

VB or C#?
 
Back
Top