This is the front part of my form
namespace locationBasedAds {
usingnamespace System;
usingnamespace System::ComponentModel;
usingnamespace System::Collections;
usingnamespace System::Windows::Forms;
usingnamespace System::Data;
usingnamespace System::Drawing;
/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ btnTestDownload;
private: System::Windows::Forms::Button^ cmdUpdateYourLocation;
private: System::Windows::Forms::Button^ DisplayAllLocation;
public: System::Windows::Forms::TextBox^ txtDisplay;
As you see, I have set txtDisplay to public
I tried to do locationBasedAds::Form1.txtDisplay.Text and it doesn't work
The intellisense show locationBasedAds::Form1
but is clueless after I press locationBasedAds::Form1