Share via


Windows Form 設計工具錯誤訊息

下列是在 Visual Studio 中使用 Windows Form 設計工具時可能會遇到的錯誤訊息清單。

在本節中

主題

位置

'<identifier name>' 不是有效的識別項

Windows Form 程式設計

'<name>' 已經存在於 '<project name>' 中

Windows Form 程式設計

'<Toolbox tab name>' 不是工具箱分類

Windows Form 程式設計

未安裝要求的語言剖析器

Windows Form 程式設計

遺失產生及剖析原始程式碼所必備的服務

Windows Form 程式設計

當嘗試建立 '<object name>' 的執行個體時發生例外狀況

Windows Form 程式設計

另一個編輯器在不相容的模式下開啟 '<document name>'

Windows Form 程式設計

另一個編輯器已對 '<document name>' 進行變更

Windows Form 程式設計

另一個編輯器在不相容的模式下開啟檔案

Windows Form 程式設計

陣列陣序規範 '<rank in array>' 太高

Windows Form 程式設計

無法開啟組件 '<assembly name>'

Windows Form 程式設計

不正確的項目型別。 這個序列化程式必須為型別 '<type name>' 的項目。

Windows Form 程式設計

目前無法存取 Visual Studio 工具箱

Windows Form 程式設計

因為是唯讀的,無法將事件處理常式繫結至 '<event name>' 事件

Windows Form 程式設計

因為要求的元件不是設計容器的成員,所以無法建立方法名稱

Windows Form 程式設計

無法命名物件 '<name>',因為已經命名為 '<name>'

Windows Form 程式設計

無法移除或摧毀繼承的元件 '<component name>'

Windows Form 程式設計

分類 '<Toolbox tab name>' 沒有類別 '<class name>' 的工具

Windows Form 程式設計

類別 '<class name>' 沒有相符的建構函式

Windows Form 程式設計

無法產生屬性 '<property name>' 的程式碼

Windows Form 程式設計

元件 '<component name>' 未呼叫其建構函式中的 Container.Add()

Windows Form 程式設計

元件名稱不可為空白

Windows Form 程式設計

無法存取變數 '<variable name>',因為它還沒有初始化

Windows Form 程式設計

找不到型別 '<type name>'

Windows Form 程式設計

無法載入型別 '<type name>'

Windows Form 程式設計

找不到繼承元件的專案項目範本

Windows Form 程式設計

委派類別 '<class name>' 沒有 Invoke 方法。 此類別是委派嗎?

Windows Form 程式設計

成員 '<member name>' 重複宣告

Windows Form 程式設計

從資源檔讀取文化特性 '<culture name>' 的資源時發生錯誤

Windows Form 程式設計

從資源檔讀取預設文化特性 '<culture name>' 的資源時發生錯誤

Windows Form 程式設計

剖析方法 '<method name>' 時失敗

Windows Form 程式設計

無效的元件名稱:'<component name>'

Windows Form 程式設計

找不到組件 '<assembly name>'

Windows Form 程式設計

組件名稱 '<assembly name>' 無效

Windows Form 程式設計

無法設計基底類別 '<class name>'

Windows Form 程式設計

無法載入基底類別 '<class name>'

Windows Form 程式設計

在此版本的 Visual Studio 中無法設計類別 '<class name>'

Windows Form 程式設計

類別名稱不是此語言的有效識別項

Windows Form 程式設計

因為元件包含對 '<reference name>' 的循環參考,因此無法加入

Windows Form 程式設計

目前無法修改設計工具

Windows Form 程式設計

無法對這個檔案顯示設計工具,因為檔案中沒有可以設計的類別

Windows Form 程式設計

未安裝基底類別 '<class name>' 的設計工具

Windows Form 程式設計

設計工具已在檔案中偵測出下列類別:

Windows Form 程式設計

設計工具必須建立型別 '<type name>' 的執行個體,但因為已經將型別宣告為抽象所以無法建立

Windows Form 程式設計

設計工具無法載入檔案

Windows Form 程式設計

發生下列例外狀況:

Windows Form 程式設計

這個檔案所使用的語言不支援必要的程式碼剖析與產生服務

Windows Form 程式設計

未正確實作語言剖析器類別 '<class name>'

Windows Form 程式設計

其他物件已經使用名稱 '<name>'

Windows Form 程式設計

物件 '<object name>' 並未實作 IComponent 介面

Windows Form 程式設計

物件 '<object name>' 已傳回屬性 '<property name>' 的 null,但這是不允許的

Windows Form 程式設計

序列化資料物件不是適當的型別

Windows Form 程式設計

必須有服務 '<service name>',但無法載入

Windows Form 程式設計

服務執行個體必須從 '<interface name>' 衍生或實作

Windows Form 程式設計

無法修改程式碼視窗中的文字

Windows Form 程式設計

工具箱列舉值物件一次只支援擷取一個項目

Windows Form 程式設計

無法從工具箱擷取 '<component name>' 的工具箱項目

Windows Form 程式設計

無法從工具箱擷取 '<Toolbox item name>' 的工具箱項目

Windows Form 程式設計

找不到型別 '<type name>'

Windows Form 程式設計

型別 '<type name>' 沒有名為 '<event name>' 的事件

Windows Form 程式設計

型別 '<type name>' 沒有名為 '<field name>' 的資料欄位

Windows Form 程式設計

型別 '<type name>' 沒有名為 '<property name>' 的屬性

Windows Form 程式設計

只能從主應用程式的執行緒中呼叫類型解析服務

Windows Form 程式設計

變數 '<variable name>' 尚未宣告或沒有指派

Windows Form 程式設計

功能表命令 '<menu command name>' 已經有命令處理常式

Windows Form 程式設計

已經有名為 '<component name>' 的元件

Windows Form 程式設計

已經有為格式 '<format name>' 登錄的工具箱項目建立者

Windows Form 程式設計

此語言引擎不支援使用 CodeModel 載入設計工具

Windows Form 程式設計

型別 '<type name>' 沒有參數型別為 '<parameter type names>' 的建構函式

Windows Form 程式設計

無法將參考 '<reference name>' 加入至目前的應用程式

Windows Form 程式設計

無法簽出目前的檔案

Windows Form 程式設計

找不到名為 '<Options dialog box tab name>' 的頁面

Windows Form 程式設計

無法在 '<Options dialog box tab name>' 頁上找到屬性 '<property name>'

Windows Form 程式設計

無法載入組件 '<assembly name>'

Windows Form 程式設計

Visual Studio 無法開啟這個檔案的設計工具,因為它裡面的類別不會從能以視覺化方式設計的類別繼承

Windows Form 程式設計

Visual Studio 無法儲存或載入型別 '<type name>' 的執行個體

Windows Form 程式設計

Visual Studio 無法在設計檢視中開啟 '<document name>'

Windows Form 程式設計

Visual Studio 找不到型別 '<type name>' 的類別設計工具

Windows Form 程式設計

請參閱

概念

Windows Form 設計工具的設計階段錯誤