Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be 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.

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
  • Chris
    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.