Click here to Skip to main content
16,015,583 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: datagridview in vb.net Pin
priya_p23315-Jan-07 1:35
priya_p23315-Jan-07 1:35 
AnswerRe: datagridview in vb.net Pin
amaneet15-Jan-07 17:41
amaneet15-Jan-07 17:41 
GeneralRe: datagridview in vb.net Pin
priya_p23315-Jan-07 18:45
priya_p23315-Jan-07 18:45 
Questionquestion on Statusbar ToolStripStatusLabel Animation Pin
priya_p23314-Jan-07 20:05
priya_p23314-Jan-07 20:05 
AnswerRe: question on Statusbar ToolStripStatusLabel Animation Pin
nlarson1115-Jan-07 6:22
nlarson1115-Jan-07 6:22 
QuestionZip and Unzip Pin
fmlove14-Jan-07 20:01
fmlove14-Jan-07 20:01 
AnswerRe: Zip and Unzip Pin
xingla14-Jan-07 20:43
xingla14-Jan-07 20:43 
QuestionDifference between Leave and LostFocus events of textbox in vb.net? Pin
Khushvadan14-Jan-07 20:00
Khushvadan14-Jan-07 20:00 
Hi Friends,

Please give me the answer of my question :

My question is :

What is the difference between Leave and LostFocus events of textbox in vb.net? When I move the focus of textbox1 to textbox2 then the error will occur. Please see following code. Run it and give me the positive reply. It's urgent....


Program Code 1 of Lostfocus Event. But It gives error and not properly run :-

Public Class Form1
Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
If TextBox1.Text = "" Then
MsgBox("enter valid values in textbox1")
End If
End Sub

Private Sub TextBox2_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.LostFocus
If TextBox2.Text = "" Then
MsgBox("enter valid values in textbox2")
End If
End Sub
End Class



Program Code 2 of Leave Event. And it is properly run :-

Public Class Form1
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave
If TextBox1.Text = "" Then
MsgBox("enter valid values in textbox1")
End If
End Sub

Private Sub TextBox2_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.Leave
If TextBox2.Text = "" Then
MsgBox("enter valid values in textbox2")
End If
End Sub
End Class


Give me the difference between these two event after studying it.


Please Help Me......

I am waiting for your answer!!!!!!!!!!!!

Thanks,

Bye.

Khushvadan Trivedi

Khushvadan Trivedi
AnswerRe: Difference between Leave and LostFocus events of textbox in vb.net? Pin
Navneet Hegde14-Jan-07 23:08
Navneet Hegde14-Jan-07 23:08 
QuestionTV Tuner Pin
densti14-Jan-07 19:50
densti14-Jan-07 19:50 
QuestionResource file Pin
nitin_ion14-Jan-07 19:41
nitin_ion14-Jan-07 19:41 
QuestionDETECT LAST PAGE WHEN PRINT..PLS HELP Pin
vbbeg14-Jan-07 19:30
vbbeg14-Jan-07 19:30 
AnswerRe: Msg for DAVE KRESKOWIAK Pin
Colin Angus Mackay14-Jan-07 22:32
Colin Angus Mackay14-Jan-07 22:32 
GeneralRe: Msg for DAVE KRESKOWIAK Pin
Colin Angus Mackay15-Jan-07 1:39
Colin Angus Mackay15-Jan-07 1:39 
QuestionTry-Catch blocks? Pin
Rahithi14-Jan-07 16:48
Rahithi14-Jan-07 16:48 
AnswerRe: Try-Catch blocks? Pin
Christian Graus14-Jan-07 18:21
protectorChristian Graus14-Jan-07 18:21 
AnswerRe: Try-Catch blocks? Pin
The ANZAC14-Jan-07 19:30
The ANZAC14-Jan-07 19:30 
AnswerRe: Try-Catch blocks? Pin
vengaqua14-Jan-07 21:19
vengaqua14-Jan-07 21:19 
AnswerRe: Try-Catch blocks? Pin
roo42615-Jan-07 1:50
roo42615-Jan-07 1:50 
AnswerRe: Try-Catch blocks? Pin
Rahithi15-Jan-07 17:11
Rahithi15-Jan-07 17:11 
QuestionConnecting to Access Database on remote server Pin
fatali814-Jan-07 12:03
fatali814-Jan-07 12:03 
AnswerRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 13:10
mveDave Kreskowiak14-Jan-07 13:10 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 15:32
fatali814-Jan-07 15:32 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 16:16
mveDave Kreskowiak14-Jan-07 16:16 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 16:48
fatali814-Jan-07 16:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.