Newb问题“仅分配,呼叫...用作语句 [英] Newb question "Only assignment, call... used as statement

查看:95
本文介绍了Newb问题“仅分配,呼叫...用作语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手,正在尝试实现漂亮的启动画面".来自CodeProject的代码( http://www .codeproject.com/csharp/PrettyGoodSplashScreen.asp )进入C#.Net 2005 ...我的Main()过程中的SplashScreen.ShowSplashScreen)总是返回错误仅赋值,调用,递增,递减,并且新的对象表达式可以用作语句".谁能指出我在这个方向上的正确方向?

I am new to C# and trying to implement the "Pretty Good Splash Screen" code from CodeProject (http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp) into C#.Net 2005...  I have the code from the website put in and it compiles without error, however when I try to call/use the code (using SplashScreen.ShowSplashScreen) from my Main() procedure, it always returns the error "Only assignment, call, increment, decrement, and new object expressions can be used as a statement".  Can anyone point me in the right direction on this one?

谢谢

推荐答案

请再次阅读该程序.答案是,这只是一个赋值.我打印了该程序-use.privacy.term的术语-我希望-我可以-我只是一个初学者.
please read the program again. the answer-is-this is only a assignmemt. i printed -the program-the term of use.privacy.i wish-i could-i am-only a beginner.


这篇关于Newb问题“仅分配,呼叫...用作语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆