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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New form not opening

Status
Not open for further replies.

Faded

Programmer
Feb 6, 2002
78
CA
Has anyone seen this before?

I have added a new form to a project, saved it, and yet when I try to display the form using a click event, the form name doesnt show up in the code completion. I simply want
Code:
Form1.show;
Form1 is not there!!! But it's in the project!! What's going on? It has to be something obvious, but I'm not seeing it.

Thanks, Faded

 
If form1 is not set to autocreate, then you need to create it:

if Form1 = nil then
Form1 := TForm1.Create(nil);
Form1.show;
 
Thanks bbegley,

I had created the form, but I forgot to add it to my USES list. Stupid.

Cheers, Faded
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top