2015-04-20 80 views
0

我有一個c#應用程序,我添加了一個新按鈕。當按鈕被點擊我要執行下面一行:無法找到類型或名稱空間名稱'WelcomeScreen'

WelcomeScreen channelBar = new WelcomeScreen(true, "http://www.trade-ideas.com/cms_static/ChannelBar/channelbar.html"); 

問題是,當我嘗試編譯,我得到錯誤信息:

The type or namespace name 'WelcomeScreen' could not be found (are you missing a using directive or an assembly reference?) 

WelcomeScreen是在DLL中的類我引用了:TIProGUI。任何想法我需要做什麼?

+2

可能缺少對「TIProGUI」的引用。即'使用TIProGUI;' –

+0

謝謝。我添加了這行:使用TIProGUI;但仍然收到相同的錯誤信息 – user3229570

+0

您是否在項目中引用了庫?在實例化時嘗試使用完整路徑:'whatever.whatever.WelcomeScreen'。如果這是一個模棱兩可的問題,這將最有可能解決它。 – CalebB

回答

-1

這可能是您的「使用」語句不完全限定參考。例如SystemSystem.Web.UI.WebControls將具有單獨的用途。

+1

我通過使用TradeIdeas.TIProGUI添加了它;在正確的地方 – user3229570

相關問題