473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cursor is Black?

Hello,

Im using VS 2005, ive created a cursor file, deleted all the "layers"
appart from 32x32 256 colors and added the image. I saved it and set
it to be embedded as a resource.

I use this line to call it:

this.Cursor = new Cursor(GetType(), "Pencil.cur");

But the cursor is a silloette of my image (seems to be displaying in
black/white). Why is this happening?

Thanks

Graeme

May 10 '07 #1
2 2432
Graeme,

What platform are you running on? It's probably because cursors don't
support that resolution/bits per pixel combination.

You probably need something 16x16 and 256 colors (or even 16).

Do you really need a cursor THAT big and with that many colors?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<gw********@gmail.comwrote in message
news:11**********************@e51g2000hsg.googlegr oups.com...
Hello,

Im using VS 2005, ive created a cursor file, deleted all the "layers"
appart from 32x32 256 colors and added the image. I saved it and set
it to be embedded as a resource.

I use this line to call it:

this.Cursor = new Cursor(GetType(), "Pencil.cur");

But the cursor is a silloette of my image (seems to be displaying in
black/white). Why is this happening?

Thanks

Graeme

May 10 '07 #2
I'm running on Windows XP.

I think the problem may be because im copy pasting from a 32bit source
and the editor in VS doesnt dampen the image down to the correct
color's.

Does anybody know any good (and free) programs that will allow me to
create .cur files?

Graeme

May 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Logan | last post by:
I am drawing the current cursor on a zoomed in view of the desktop which seems to be work for all of the cursor types, except that the IBeam is always being drawn inverted (white) even when it...
2
by: Pekka Jarvela | last post by:
How can I hide the cursor in C++? I am using Visual Studio .NET and the problem is that the cursor remains blinking on the opening screen on my program. How can I set it to be black so that it...
10
by: Danny | last post by:
How can I get the coordinates of the mouse cursor in Mozilla browsers as well as Opera and IE6? I'm struggling to understand how to capture mouse movement events with Mozilla/Netscape/Firefox and...
4
by: Sid S. | last post by:
How can I find the absolute cursor location? Where the mouse cursor is located with repect to the body. This way I can position an div tag where the mouse is, even if scrolled down farther on the...
7
by: Crirus | last post by:
I see most of you are active now so I must remeber you a problem of mine. How can I display ac ustom cursor for a control exactly as I designed? I have it as resource, drawed with intern icon...
5
by: Lespaul36 | last post by:
I have a mdi app. I need to change the cursor when I click on certain button on a form that I made into a toolbar. I tried to use cursor.current. But the cursor won't show. if I change the form...
3
by: Tibor Odehnal | last post by:
Hello, i have a crazy bug on one Machine. My Application is running fine on 6 Workstations (XP an W2K) On a new one (XP) i will have a black box as cursor if i want to resize a listview...
6
by: Peter Oliphant | last post by:
I've now asked how three times in this forum with no answers. So I went to the 'windowsforms' newsgroup, and found this post, also unanswered, with the same problem: "Hello, I've tried to...
1
by: pbernasc | last post by:
Does anyone know how to successfully load a custom color (32 bits) cursor in C# (under XP..NET 2.0 - or NET3.0 eventually)? All I could do using C# .Net support was loading a color cursor but ending...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.