Thumbs upSolvedAdding A New Form Problem

Posts 19 of 9 · Page 1 of 1
Adding A New Form Problem
When I add an existing form to a new project, I have a piece of code that runs the new form but it doesn't show up for some reason.
You mean you did "Project" -> Add New Form --> *give it some name*

Then..

SomeName _myForm = new SomeName(); // SomeName = name of the form, or actually, the class.
_myForm.Show();


Post code? -screenshot of the ide (with code open) while project is running. ?
Quote Originally Posted by abuckau907 View Post
You mean you did "Project" -> Add New Form --> *give it some name*

Then..

SomeName _myForm = new SomeName(); // SomeName = name of the form, or actually, the class.
_myForm.Show();


Post code? -screenshot of the ide (with code open) while project is running. ?
I added an existing form, I'm combining some of my projects together into one new project. I used add an existing item and then renamed the added form.
Is KeyManager in a namespace?
Quote Originally Posted by abuckau907 View Post
Is KeyManager in a namespace?
Not sure, I added it from a different project so maybe?
Open the other 2 form files...at the top look for

namespace *****************
{

It's probably whatever your old project's name was.


add "using *namespace*" at the top (of the file from the screenshot), or use namespace.KeyManager instead of just KeyManager.
Quote Originally Posted by abuckau907 View Post
Open the other 2 form files...at the top look for

namespace *****************
{

It's probably whatever your old project's name was.


add "using *namespace*" at the top, or use namespace.KeyManager instead of just KeyManager.
Yeah it is, what do I change it to?
No answer for that. But in order to "use" that class, you have to use it's full name.

Namespace.KeyManager


Where the 2 red squigglies are under KeyManager...change "KeyManager" to

yournamespace.KeyManager
------------------------------
Dayz_Multi_Tools if you want it to be the same as your current project. *
Posts 19 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?