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

cursor show and hide

quick question, im making a a program and when the mouseposition gets to a
caertain point, it will be shown, if it isnt ther, it will be hidden. i have
the code written and set breakpoints but it wont work, heres what i have

if me.mouseposition.Y >= 100 then
me.cursor.hide
else
me.cursor.show
end if

but when it gets below 100, it doesnt show up even though, when i set a
breakpoint there, it executes the code....help
Nov 21 '05 #1
2 3362
Try this:

Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
If Me.Cursor.Position.X >= 100 Then
Me.Cursor.Hide()
Else
Me.Cursor.Show()
End If
End Sub

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
hi, yea that didnt work, it does the same thing. when i set the breakpoint it
says that the Y coordinate is less that 100 and ti highlights the code
"me.cursor.show()" but it wont show it
Nov 21 '05 #3

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

Similar topics

2
by: Csaba2000 | last post by:
The following code has me so confused, I don't even know the right questions to ask. Opera 7.01 and IE 5.5 both exhibit behaviours I don't understand while NN 6.1 seems to ignore me altogether. ...
5
by: pinocchio | last post by:
Hello, I want to hide cursor in textRichBox. Default the cursor blink if you click on richTextBox and I want to disable this feature. I need to make something like Adobe Reader, so textRichBox...
1
by: mikee | last post by:
I am developing a program using VB.net. It's a web based program that use web controls. When the system display a checkboxlist, I immedately try to put up a popup screen. The problem is before the...
3
by: Andy G | last post by:
This should be very simple but I can't figure it out or find ANYTHING posted about how to change your cursor to an hourglass. I have a ASP.NET web form using VB.NET code behind. When I click on a...
7
by: kevin | last post by:
I am build a touch screen app and don't want the cursor to show on certain forms and controls. I still need mouse functions but don't want to see the cursor. I have tried visual basic...
1
by: mark2802 | last post by:
I have a requirement where I need to be able to hide the mouse cursor or move the mouse cursor to coordinates which are off the screen as to simulate a hidden mouse cursor using access. Does...
4
by: Billy | last post by:
Hi all, I'm building a text file from a database table using the ASP Write Method and would like to position the cursor in a specific column position before writing the fields. As I loop through...
5
by: mike_dba | last post by:
I am looking for comments on experience using a Load from Cursor across multiple db's databases. I have a multi-terrabyte database across many partitions that includes a large table (1 Tb+). The...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.