473,408 Members | 1,775 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.

Changing the cursor on an ImageButton control. How?

I have an ImageButton control that I am using on one of my pages. Sometimes,
this button will act as a button and redirect users to another page. But
sometimes, it will just act as an image container. In this case, I don't
want the default hand cursor to be displayed so that the user things that it
is a hyperlink when it's not. I just want the default cursor to display as
with any other image when the user passes the mouse over it. Any way to do
this?

Thanks in advance!
Nov 18 '05 #1
2 3788
add a style to the control when you want it to display normal mouse pointer
ob.style.add("cursor:normal")

"David Hearn" <da*********@stagparkway.com> wrote in message
news:uX**************@TK2MSFTNGP10.phx.gbl...
I have an ImageButton control that I am using on one of my pages. Sometimes, this button will act as a button and redirect users to another page. But
sometimes, it will just act as an image container. In this case, I don't
want the default hand cursor to be displayed so that the user things that it is a hyperlink when it's not. I just want the default cursor to display as
with any other image when the user passes the mouse over it. Any way to do
this?

Thanks in advance!

Nov 18 '05 #2
Thanks Steve!

"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
add a style to the control when you want it to display normal mouse
pointer
ob.style.add("cursor:normal")

"David Hearn" <da*********@stagparkway.com> wrote in message
news:uX**************@TK2MSFTNGP10.phx.gbl...
I have an ImageButton control that I am using on one of my pages.

Sometimes,
this button will act as a button and redirect users to another page. But
sometimes, it will just act as an image container. In this case, I don't
want the default hand cursor to be displayed so that the user things that

it
is a hyperlink when it's not. I just want the default cursor to display
as
with any other image when the user passes the mouse over it. Any way to
do
this?

Thanks in advance!


Nov 18 '05 #3

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

Similar topics

1
by: Riccardo Giomi | last post by:
Hi I would to display a Cursors.WaitCursor on a ListView control, so I tried listView.Cursor = Cursors.WaitCursor but it doesn't work at all, I see always the default cursor. The same thing...
1
by: Henke | last post by:
Hello, I have one ImageButton controls which I initialize in Page_Load and declare on class level. ImageButton save = new ImageButton(); save.ImageUrl = "save.gif" save.Click += new...
2
by: CJ Oakwood | last post by:
Morning - I am hoping somebody from this group can help me out here... I have been trying to add an array of ImageButtons to my WebForm however I keep getting an exception that I can't seem to...
1
by: Nathan Sokalski | last post by:
I want to create a pushbutton-like control on my webform that has an image on it. I used to think that this is what the ImageButton control was, but it seems to me that the ImageButton is nothing...
3
by: jens.buchta | last post by:
Hi! I'm using a DataGrid with a template column to display an Image inside of it. I'm hooking into its OnPrerender-Event to set the ImageURL-Property dynamically. Everything works just fine...
2
by: Jim Frazer | last post by:
Hi, I'm working on an application in C# that will allow the user to create simple CAD drawings on a CEPC system. I would like to be able to change the cursor shape depending on the drawing mode...
1
by: Joe | last post by:
I'm working on a usercontrol, and an associated ControlDesigner for it. In the designer, when I mouse over a particular area of the usercontrol, I want to change the cursor from the standard...
1
by: ranger979 | last post by:
I am using the emptydatatemplate for a gridview control. I have a detailsview control within the emptydatatemplate. In the detailsview I have another templatefield that contains an imagebutton...
1
by: ranger979 | last post by:
I am using the emptydatatemplate for a gridview control. I have a detailsview control within the emptydatatemplate. In the detailsview I have a templatefield that contains an imagebutton control...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.