I get an error when I try to give this button a na ction of showing a new form. It says:
"error C2039: 'poeni' : is not a member of 'IgraBobi'". But this "poeni" form IS a member of the "IgraBobi" solution. I added it correctly, why doesn't it recognize it...

[
private: System::Void button2_Click_2(System::Object^  sender, System::EventArgs^  e) {
System::Windows::Forms::Form^ Tocni = gcnew IgraBobi::poeni;
Tocni->ShowDialog();
}
]

First of all, if you haven't, try adding

#include "poeni.h"

at the top of the 'Tocni' file, and instead of

System::Windows::Forms::Form^ Tocni = gcnew IgraBobi::poeni;

(I'm guessing you're trying to show "poeni" from "Tocni", or maybe the other way round, I dont know)
use this:

poeni^ Tocni = gcnew poeni;

Tocni->ShowDialog();

if the error still occurs, I have to suggest re-adding the form into the application.

Good luck, let me know if it works!

Thanks a lot, the #include statement was missing :S. It's ok now, thanks again

No problem! Glad I could help. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.