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

How to add a form to a project? 1

Status
Not open for further replies.

GPerk

Programmer
Jul 6, 2002
161
US
I have a Project with a Main form and four other Forms.
I want to add a fifth Form to the Project.

I tried selecting "Project" and then "Add Windows Form" which added the blank Form (called "Daily") to "Main" form.

Since "Daily" already existed as a separate Project (called "DayTask"), I copied the controls and the code from the "DayTask" to the blank "Daily" Designer and Code.

But now I get the error message:
'Daily' is not a member of 'Main.My.MyProject.MyForms'.

How can I get the "Main" project to recognize the "Daily" form?
 
Make sure the form is named properly in both the Properties Window and in the code window.
Code:
Public Class Daily

--------------------------------------------------
"...and did we give up when the Germans bombed Pearl Harbor? NO!"

"Don't stop him. He's roll'n."
--------------------------------------------------
 
Thank you, OU,
That is exactly what the problem was!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top