Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My second form is undeclared

Status
Not open for further replies.

AmandaDearheart

Programmer
Jun 24, 2007
13
0
0
US
I'm writing an application that has two forms. When i try to call the second form from the first form, I get an error message saying that the form is undeclared.

How do I resolve this error!

Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
Assuming your forms are called Form1 and Form2, add a
Code:
#include "Form2.h"
below the
Code:
#pragma once
in your Form1.h
O.B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top