473,408 Members | 2,477 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.

CellHover, not datagrid MouseHover?

Hi,
I've used the MouseHover event in my datagrid and have almost everything the
way I want it - but I've realized that the MouseHover event won't go unless
the mouse leaves the datagrid. But I need it to kick in when I move the
mouse over a different cell within the datagrid.
I don't even know where to start here. Any recommendations?
Thanks!!!
Mel
Nov 17 '05 #1
1 3581
Try this code it might be helpful to you.

private DataGrid.HitTestInfo hti;
private void dataGrid1_MouseHover(object sender, System.EventArgs e)
{
if ( hti.Type == System.Windows.Forms.DataGrid.HitTestType.Cell )
{
this.textBox1.Text = dataGrid1[hti.Row, hti.Column].ToString();
}
}

private void dataGrid1_MouseMove(object sender,
System.Windows.Forms.MouseEventArgs e)
{
hti = dataGrid1.HitTest(e.X, e.Y);
}

Regards,
Sanjeevakumar Hiremath
Proteans Software Solutions
http://msdn.microsoft.com/library/de...classtopic.asp


"melanieab" <me*******@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
Hi,
I've used the MouseHover event in my datagrid and have almost everything
the
way I want it - but I've realized that the MouseHover event won't go
unless
the mouse leaves the datagrid. But I need it to kick in when I move the
mouse over a different cell within the datagrid.
I don't even know where to start here. Any recommendations?
Thanks!!!
Mel

Nov 17 '05 #2

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

Similar topics

0
by: JJay | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
0
by: jaxCtiDev | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
1
by: Natan | last post by:
I was playing with control events and noticed that if try to change the color of a button or text in a MouseHover event, it is slow to respond. It takes about half a second to notice that the mouse...
1
by: Sheriff | last post by:
Receiving a single mouseHover is simple, just move the mouse over my control and wait. However, following this mouse hover event, if I move the mouse around within the control and once again wait,...
1
by: Phenix Smith | last post by:
I am working on the component and would like to change a display when the user stops moving the mouse inside the control. I used the MouseHover and MouseMove to change the status, but the...
2
by: melanieab | last post by:
Hi, How can you determine which cell the mouse is positioned over during the mousehover event? Thanks so much! Mel
4
by: Ronald S. Cook | last post by:
I have a label on a Windows form. I have the following code which doesn't work when I mouse over the label. Any idea why? If I change MouseHover to MouseEnter it works. So, what good is...
3
by: Marc | last post by:
Hi, I create buttons dynamically at runtime in my application. I want to open a messgae box when the user hovers over a button.how can i do this? i need something like the below(which doesnt...
12
by: Marc | last post by:
Hi, How can i increase the mousehover event timer? AddHandler NewBtn.MouseHover, AddressOf Shownotes Private Sub Shownotes(ByVal sender As System.Object, ByVal e As System.EventArgs)...
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...
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
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
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,...
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.