Support.CursorToIPicture(Cursor) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
回傳一個對應於指定 IPicture的 OLE Cursor 物件。
public:
static System::Object ^ CursorToIPicture(System::Windows::Forms::Cursor ^ curs);
public static object CursorToIPicture(System.Windows.Forms.Cursor curs);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object CursorToIPicture(System.Windows.Forms.Cursor curs);
static member CursorToIPicture : System.Windows.Forms.Cursor -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member CursorToIPicture : System.Windows.Forms.Cursor -> obj
Public Function CursorToIPicture (curs As Cursor) As Object
參數
傳回
一個 Object 代表 OLE IPicture 物件的 。
- 屬性
備註
在 Visual Basic 6.0 中,表單或控制項的 MouseIcon 屬性可用來載入自訂的 MousePointer(游標)。 在某些情況下,該 MouseIcon 影像會被儲存為 stdOle.IPicture;此函式被升級工具用來將 a Cursor 轉換為 stdOle.IPicture。
若要在Visual Basic中轉換 Cursor,請使用 GetIPictureFromCursor 類別的 AxHost 方法。
Note
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。