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. ?
Originally Posted by abuckau907
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?
Originally Posted by abuckau907
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.
Originally Posted by abuckau907
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. *