473,789 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way I can reference the button control that activated the mouseenter event?

Hello,

Is there a way I can reference the button control that activated the
mouseenter event?

My buttons are created at runtime so i do not know any names.

I was hoping to use Me.ActiveContro l but this only works if the button
is clicked.

Thank You

Mar 2 '07 #1
3 1054
The 'sender' argument to the mouseenter event is going to be the object that
triggered the event. You can cast it to a Button if you know that is what it
is.

"John" <ma*********@ho tmail.comwrote in message
news:11******** **************@ 30g2000cwc.goog legroups.com...
Hello,

Is there a way I can reference the button control that activated the
mouseenter event?

My buttons are created at runtime so i do not know any names.

I was hoping to use Me.ActiveContro l but this only works if the button
is clicked.

Thank You

Mar 2 '07 #2
On 2 Mar, 21:38, "Marina Levit [MVP]" <mari...@comcas t.netwrote:
The 'sender' argument to the mouseenter event is going to be the object that
triggered the event. You can cast it to a Button if you know that is what it
is.

"John" <marc_cro...@ho tmail.comwrote in message

news:11******** **************@ 30g2000cwc.goog legroups.com...
Hello,
Is there a way I can reference the button control that activated the
mouseenter event?
My buttons are created at runtime so i do not know any names.
I was hoping to use Me.ActiveContro l but this only works if the button
is clicked.
Thank You- Hide quoted text -

- Show quoted text -
Thanks very much.....any idea how i would referefnce the sender
thoughI looked on help and couldnt work it out?
sorry I am new to all this...just writing an application for myself

Mar 3 '07 #3
On 3 Mar, 09:16, "John" <marc_cro...@ho tmail.comwrote:
On 2 Mar, 21:38, "Marina Levit [MVP]" <mari...@comcas t.netwrote:


The 'sender' argument to the mouseenter event is going to be the object that
triggered the event. You can cast it to a Button if you know that is what it
is.
"John" <marc_cro...@ho tmail.comwrote in message
news:11******** **************@ 30g2000cwc.goog legroups.com...
Hello,
Is there a way I can reference the button control that activated the
mouseenter event?
My buttons are created at runtime so i do not know any names.
I was hoping to use Me.ActiveContro l but this only works if the button
is clicked.
Thank You- Hide quoted text -
- Show quoted text -

Thanks very much.....any idea how i would referefnce the sender
thoughI looked on help and couldnt work it out?
sorry I am new to all this...just writing an application for myself- Hide quoted text -

- Show quoted text -
ive sorted it...thanks

Mar 3 '07 #4

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

Similar topics

18
3070
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to button style, I must use a System.Windows.Forms.Button. I can not find a way to tell when it is momentaraly pressed. I tried calling the API SendMessage with the button handle and BM_GETSTATE to get the state of the button. This will only return...
1
1270
by: Peter Sulikowski | last post by:
If I have a button for example on a form, is there a way that I can spy on which .Net events etc are being raised as I move over the button with the cursor, click on the button, leave input focus etc. The documentation tells me what they are but often I find I am trapping the wrong event, or that it didn't behave as expected. What I want is, for example, to move my cursor over a button and 'see' in another window that mouseenter event be...
18
2988
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
12
7387
by: SJ | last post by:
Hope someone can help me out there I'm struggling with a particular problem... I have a form with many tab pages. On one tab page I've got a button which when clicked with a mouse adds items into a datagrid. When a user presses the enter key on this button I want the mouse click event to be activated but instead the tab page's validating event is called. I understand that this behaviour is by partly by design (Accept button etc) but I...
3
10642
by: Mel | last post by:
Hi, Is there any way I can force to change button background colour when toggle button is checked? Just like button change its background colour when mouseover in MS Visual Studio.NET. I hope I can get my question answered. Thank you very much.
7
3448
by: MasterMax1313 | last post by:
I'm trying to make a grid of picture box controls, which I do via code. Each of these boxes has a mouseclick, mousedown, mouseup, and mouseenter event. The mouseclick event is simple enough and works fine. However, i use the mousedown, mouseup, and mouseenter events to be able to click and drag to apply the same image across all of the boxes the mouse enters (similar to a terrain editor for a game like StarCraft). I set a form wide boolean...
0
2042
by: nraji | last post by:
hi, I have designed a web part using VS 2003 (Web control library template). I need to publish that in share point. Its not like drag and drop the things from toolbar. Every thing I need to do in code behind side. I have a button and text box Button Id: btnSearch TextBox id: txtSearch
3
2192
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, Is there button mouse over event in .net? What I want to do is instead let user click button to pop up message, I let user put mouse over button and then auto-pop up message? Thanks, Martin
7
3144
by: ManWithNoName | last post by:
If you have a form with x input and two or more buttons, how do you control which button has preceding when the user hits the keyboard key "enter"? Currently it seems to be determined in a hierarchical manner. E.g. <form>
0
10400
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10189
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10132
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9010
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6754
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5412
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4084
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3688
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.