May 11, 2016 at 8:20pm UTC
You need to pass a reference of form1 to form2. Try to set form1 as the parent of form2. In form2 you cast the parent to form and show or hide it.
May 13, 2016 at 12:35pm UTC
i do this
HlavneMenu.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "PridanieTasku.h"
#include "Komentare.h"
#include "Trackovanie.h"
#include "UzavrietUlohu.h"
namespace MetrumPTT {
ref class Trackovanie;
public ref class HlavneMenu {
HlavneMenu^ hlavnemenu;
};
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
and Trackovanie.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <adam.h>
#include <msclr\marshal_cppstd.h>
#include "HlavneMenu.h"
namespace MetrumPTT {
ref class HlavneMenu;
public ref class Trackovanie {
Trackovanie^ hlavnemenu;
};
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace MySql::Data::MySqlClient;
using namespace std;
using namespace msclr::interop;
Error is :
http://prntscr.com/b3jrh5
How to solve this, i think the ref class i made wrong.
Last edited on May 13, 2016 at 12:35pm UTC