VS 2010 setting non-GUI class file as Component

前端 未结 2 1756
孤独总比滥情好
孤独总比滥情好 2021-02-12 01:20

I have an annoyance that has been occurring for quite some time with Visual Studio 2010. I have a class file that I have made which VS saves as type \"Component\" for no reason

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-12 02:11

    At a guess, I'd say it's due to your GPSPort class, which extends SerialPort, which extends Component. Try removing that (or moving it into a separate file) and see if it fixes the problem.

提交回复
热议问题