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

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.
 
C

Collin

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.
 
B

Ben Voigt [C++ MVP]

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#?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top