0
我有一個像sym66.cur印度國旗光標,我用它在C#代碼。它正在運行 但它沒有得到正確的圖像。相反,它正在變黑。如何使光標以適當的格式顯示?更改鼠標光標到C#窗口應用程序的印度國旗
這是我的代碼:
private void New_Registration_Load(object sender, EventArgs e)
{
this.Cursor = new Cursor(Application.StartupPath + "\\sym66.cur");
}
您需要提供有關您的情況的更多詳細信息。請確保你試圖從一個有效的位置加載'sym66.cur'(即'Application.StartupPath'真的指向你認爲的位置?)。也許這可以幫助你:http://stackoverflow.com/questions/2797084/using-custom-cursor-winforms – FreeSnow
可能被接受的答案在這裏:http://stackoverflow.com/questions/4305800/using-custom-colored-遊標功能於AC鋒利Windows的應用程序 – Brian