473,383 Members | 1,862 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,383 software developers and data experts.

Making the cursor invisible

vdraceil
236 100+
Hi,i'm making a game with vb6.0.Once the application is opened,the cursor must become invisible.does anyone know how to do this?
Mar 1 '08 #1
3 4649
VACEPROGRAMER
168 100+
Yess!!!!!!!! I need to see the code at home. I thin it was like this

Dim A as Cursor
a.visible = False

Never mind . . I will send you about 5 hours OK??

VxE
Mar 1 '08 #2
Hey man. I use this one. It's easy and only 2 lines of code and actually works:

Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

Declare that function in your general area. Then, use this to show/hide in the form or button code:

Hide cursor - ShowCursor 0
Show cursor - ShowCursor 1 (or any non-zero value)

It's really that easy. If it doesn't work let me know.
Mar 1 '08 #3
Killer42
8,435 Expert 8TB
One thing to keep in mind with this function. I remember this from when I used it many years ago, so it may not apply any more. But here goes anyway.

It's important to always show again after hiding. Windows keeps count of the number of times the mousepointer has been hidden, and the number of times "unhidden". And it shows the pointer or not depending on whether the latter is equal to or higher than the former. So if you let the two counts get out of synch, the pointer may not come back until you restart Windows.
Mar 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Gary Richardson | last post by:
I would like to define a new cursor for use on a Canvas (other than one of those listed in Appendix F of "Python and Tkinter Programming"). A search on Google turned up one bit of code that seemed...
9
by: I. Kobrinsky | last post by:
I'm new here. I started a personal password-program, a trial that includes username, logincounter and password. So my intention is to hide pwd while tipping. So I'm thinking about two popular...
4
by: Paul Thompson | last post by:
I am getting an odd, inscrutable error in Mozilla Firefox. When I use an array to shift focus to an element, I get the error Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" ...
4
by: BBFrost | last post by:
We have a data entry application written within Framework 1.0 that contains 20+ custom user controls. The controls overlay each other so that only one custom control is visible at a time. What...
0
by: melanieab | last post by:
Hi, How can I make the cursor invisible when it goes into a certain textbox and then reappear when it goes on to the next? Thanks! Melanie
0
by: Peteroid | last post by:
I'm doing a managed C++.NET (2003) application where I use a Control::TextBox. When typing in text there is a cursor indicating the position of where typed in text will go next (typically, a...
1
by: AndrewF | last post by:
Hi all, I've been trying to google this bug for a few hours and haven't turned up anything which leads me to believe the way I'm framing the question is the way someone else has. Anyway...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
5
by: Andy B | last post by:
I have 2 TextBoxes and an Add button on a page. When the user fills in the TextBoxes, the values are added to a dataset table. When the page gets done reloading, the TextBoxes are turned into...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.