Hello everyone,

I wonder if anyone out there can help with me with this one question.

I created 2 window forms, one is Form1, and another one is Form2.

I tried to pass one of the variable from Form1 to Form2, but I can't seem to get it to work. 


I tried the following, but it still not work:

// In Form1.=================
public: int own; // own here mean: how much the customer own.

// In Form2.====================
#include "Form1.h"
extern int own;

I get the error in the picture. Do you have any suggestion? Thank you very much!