|
-
Feb 22nd, 2003, 07:06 PM
#1
Thread Starter
Lively Member
lostfocus in vb7
sorry guys for this question!
But , how do i know when a texbox lost focus.
like in vb6 :
Private Sub TextSKU_LostFocus(Index As Integer).
-
Feb 22nd, 2003, 07:12 PM
#2
Sleep mode
Re: lostfocus in vb7
Originally posted by Edilson
sorry guys for this question!
But , how do i know when a texbox lost focus.
like in vb6 :
Private Sub TextSKU_LostFocus(Index As Integer).
try this in a commandbutton
VB Code:
If TextBox1.Focus = False Then
MsgBox("lost")
Else
MsgBox("got focus")
End If
-
Feb 22nd, 2003, 07:15 PM
#3
Thread Starter
Lively Member
this is not an event.
i need to control when the user left the textbox.
-
Feb 22nd, 2003, 07:20 PM
#4
Sleep mode
Originally posted by Edilson
this is not an event.
i need to control when the user left the textbox.
VB Code:
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave
End Sub
this is lostfoucs event of a textbox
-
Feb 22nd, 2003, 07:23 PM
#5
Thread Starter
Lively Member
thank you !!!
Do i have to insert manually this sub or vb7 does it for me like in vb6 ???
-
Feb 22nd, 2003, 07:26 PM
#6
Sleep mode
Originally posted by Edilson
thank you !!!
Do i have to insert manually this sub or vb7 does it for me like in vb6 ???
nope . It is ready in "Method Name" Combobox on the right side.
-
Feb 22nd, 2003, 07:30 PM
#7
Thread Starter
Lively Member
thank you very much !!!!!!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|