PC Review


Reply
Thread Tools Rate Thread

Is it bug: Leave event raises if ctl.select()...

 
 
G.Ashok
Guest
Posts: n/a
 
      24th May 2004
Hi,

I just installed VS.Net 2003 and upgraded my project to 2003. Immediately
found the following new behavior which causes my solution working erratic.

In the leave event of a control (e.g. TextBox) I select (set focus to)
another control cause the leave event to raises again of the source text
box.

Steps to reproduce.


1. Start new win project
2. Drop 3 Text Boxes
3. In the leave event of the TextBox1 write the code..
Debug.WriteLine("TextBox1_Leave")
Me.TextBox3.Select()
4. Run the solution and observer that the leave event fires twice...

This way if we put more ctl.Select() then it raises a Leave event for each
ctl.Select() call

What is this...?

Regards,
....@shok



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid.Select raises error... SammyBar Microsoft Dot NET Compact Framework 1 23rd Jan 2006 09:24 PM
SelectedIndexChanged Event raises by filling Combobox? Thomas Bandt Microsoft Dot NET Compact Framework 1 7th Dec 2005 12:30 PM
Usercontrol don't raises keyDown event Ronchese Microsoft VB .NET 1 11th Sep 2005 09:08 PM
ClearContents in event proc raises error JM Microsoft Excel Programming 0 1st Jul 2004 09:11 PM
datatable.select raises error for non-indexed fields David Microsoft ADO .NET 1 12th Nov 2003 11:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 AM.