473,320 Members | 2,071 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,320 software developers and data experts.

An odd situation

Here's one that's been gnawing at me all day... Why is it when I
attempt to use a 16-color custom pointer (MousePointer = 99,
MouseIcon="thefinger.cur") that at run-time, all the colors wash
out, and a monochrome cursor is displayed?
This behavior takes place regardless of the type of object that
its pointing to... What gives?

Jul 17 '05 #1
1 1467
Nevermind... I worked it out on my own.

For those of you pondering the reason why it did that in the first
place...you guessed it... bug in VB (no thanx to MS).

The workaround:
Set up the pointer (.cur file) as a RESOURCE, then do a
objectname.MouseIcon = LoadResPicture(ResID, vbResCursor)
in your Form_Load event to assign it to the objects you want.
Running it from the IDE, will STILL display the pointer in
monochrome, but once your program is compiled and installed,
it'll start showing up in color... ya just gotta trust it.

"CajunCoiler (http://www.cajuncoiler.tk)"
<po**********@totallyspamless.cox.net> wrote in message
news:scylb.99912$a16.59283@lakeread01...
Here's one that's been gnawing at me all day... Why is it when I
attempt to use a 16-color custom pointer (MousePointer = 99,
MouseIcon="thefinger.cur") that at run-time, all the colors wash
out, and a monochrome cursor is displayed?
This behavior takes place regardless of the type of object that
its pointing to... What gives?

Jul 17 '05 #2

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

Similar topics

3
by: Jonah | last post by:
Hi I've run some tests and I have to conclude that mysql and fopen doesn't work when you call it in this way. I don't understand why, it's got to be either one of 2 things: a) this just can't...
2
by: Newsnet Customer | last post by:
Hi, consider this: void test () { A* anA = new A(); if (anA == 0){//handle situation} }
0
by: ALI | last post by:
hi i need some best answer's for this question for interview as an oracle (DBA). Q : what is the most difficult situation u faced and how did u solved it ???? i really appriciate if some...
0
by: DIMM | last post by:
Using vb in vstudio .net I have implement the datagrid control in the application this is the situation I fill my datagrid with data and the scroll of the data grid not appear to be anable but it...
1
by: Belmin | last post by:
I'm not sure if this might be a left join situation or what but Im trying to query and retrieve id, text, category id, number of comments on that id and the description for that category id. now...
28
by: Christopher Benson-Manica | last post by:
(I did not write this code!) const char *GetSortMethod( unsigned int sortMeth ) { const char *sortingstring; if( sortMeth == 0 ) { sortingstring = "D"; } if( sortMeth == 1 ) { sortingstring...
5
by: Andrew S. Giles | last post by:
I thought I would post here, as I am sure someone, somewhere has run into this problem, and might have a good solution for me. I am writing an applicaiton in C# that will accept data and then put...
10
by: Amit | last post by:
Hi I have occured a very strange situation. The scenario is as follows. I have two buttons in the form. First button is Load button and the second one is Delete button. As the name suggests...
16
by: PyDenis | last post by:
Today, I found strange error while using py2exe: 1. I wrote simple program and save as 1.py: import win32ui import win32con win32ui.MessageBox('Test messageBox.' , 'Test', win32con.MB_OK |...
4
by: Annie | last post by:
Hi guys, I am having a weired situation that don't know how to handle it ... I have master pages, the master page contains a dynaic menu which is set up in the database and has page url, name,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.