473,386 Members | 1,830 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,386 software developers and data experts.

chage colour of label when user lost focus over label

284 100+
I am using the following code at mouse move event of label

Private Sub label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Lable1.ForeColor = &HE2926B
End Sub
Now i want that when user lost focus from the label its color aging change back , on what event i want to do this code as there is no event like lost focus on label. OR
how i can detect that the user moves its cursor outside label.
Jan 1 '09 #1
3 2740
debasisdas
8,127 Expert 4TB
you need to check X & Y coordinates of the mouse pointer an dfindout if it is over the mose or not.
Jan 1 '09 #2
QVeen72
1,445 Expert 1GB
Hi,

Write Label1.ForeColor =vbWhite in Mouse_Move of the Form..
(If Mouse is not over Label, Form's Mouse Move is triggerred..)

Regards
Veena
Jan 2 '09 #3
muddasirmunir
284 100+
Thank veena its worked with form_mousemove.
Jan 2 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Craig | last post by:
I have a page that has a few columns and totals. I've been asked to amke sure that not only is the totals boxes readonly, they must not accept focus from the cursor. However, setting the bo to...
2
by: Symphony | last post by:
Hi, all: I have a label "ID=lblTotal" in my aspx page and also have a button "ID=btnTotal" I would like to click total button and show the result on the label and set focus on the label. Now,...
1
by: PK9 | last post by:
On my page, I want to set the focus to the top of the page (where I have a message in a label) after a button is clicked. How can I use javascript on the server side to set the focus either to a...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
5
by: WindAndWaves | last post by:
Hi Gurus I have a very simple question this time. I have a continuous form with a textbox (ID number) and a label. The label has a on_click event: msgbox me.id.value If I click on the...
0
by: thomaz | last post by:
I use the DataSource like below to fill a Combobox: comboBox1.DataSource = dataSet1.Tables; comboBox1.DisplayMember = "ProductName"; When the user types any keyboard key i use the DROPDOWN...
7
by: Ed West | last post by:
Hello, I have a simple form with some input boxes. After validation if one fails, then I would like to at the top of the page say something like "The following fields in red are required" and...
0
by: H-S | last post by:
Can anyone help. I have a C# app developped in C# Express. I have a form which contains several groupboxs, with text labels. I also have a standard "label" on the form. I want to set the label...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.