Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Lv 7

I can't run my windows form?

I wanted to run one of my windows form using the Application.Run(new FormName);

But I can't, because my formname is underlined with red, even I typed the correct formname. Can someone help me?

I'll give a link to the pic.

https://imgur.com/Oslml45

The formname is correct there.

Update:

I tried to run it. It opened the other form instead, not the one I'm trying to open right now.

It opened the last correct formname I entered.

2 Answers

Relevance
  • ?
    Lv 7
    2 years ago

    C# doesn't know what Compile1 is referring to. You need to import the class first, by putting something like

    using Compile1;

    at the start of your program.

  • Jeff
    Lv 6
    2 years ago

    Underlined red means the word is seen as misspelled but it won’t affect your code so you should be fine.

Still have questions? Get your answers by asking now.