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

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.ActiveControl but this only works if the button
is clicked.

Thank You

Mar 2 '07 #1
3 1036
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*********@hotmail.comwrote in message
news:11**********************@30g2000cwc.googlegro ups.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.ActiveControl but this only works if the button
is clicked.

Thank You

Mar 2 '07 #2
On 2 Mar, 21:38, "Marina Levit [MVP]" <mari...@comcast.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...@hotmail.comwrote in message

news:11**********************@30g2000cwc.googlegro ups.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.ActiveControl 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...@hotmail.comwrote:
On 2 Mar, 21:38, "Marina Levit [MVP]" <mari...@comcast.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...@hotmail.comwrote in message
news:11**********************@30g2000cwc.googlegro ups.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.ActiveControl 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
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...
1
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...
18
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....
12
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...
3
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...
7
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...
0
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...
3
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,...
7
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...
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...
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
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
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.