bugs >> Leave event disabled control below

by bmxhcnNvbjEx » Thu, 05 Feb 2009 22:19:44 GMT

Hello,

I have 3 textboxes on my screen. Focus is in textbox1. When I hit the
tab key, the leave event of textbox1 has code that evaluates the text
property of textbox1 looking for a specific value. If it is a match, it
disables textbox2. The focus remains in textbox1 instead of being in
textbox3.

Is this a confirmed bug and if so, will it be fixed soon?

--
Nathan - GBIS


bugs >> Leave event disabled control below

by Dean Earley » Thu, 05 Feb 2009 23:33:55 GMT





It works as expected here, focus ends on textbox3.


From your description, you are talking about .net in which case, maybe,
most likely not.
If however, you are using VB6 (the subject of this group) then it
appears it already is, try making sure you have the latest vb6 service pack.

--
Dean Earley ( XXXX@XXXXX.COM )
i-Catcher Development Team

iCode Systems



bugs >> Leave event disabled control below

by expvb » Fri, 06 Feb 2009 00:46:43 GMT





Please post your question here:



This newsgroup is for VB6(VB Classic) and lower, which is incompatible with
what you are using. DotNet has separate groups; all of which have either
"dotnet" or "vsnet" in the name. If the group has "vb" in the name without
"dotnet", then it's for VB6 and lower only.

Thank you





Similar Threads

1. leave event fires disabling textbox below -cursor stays in 1st tex

Hello,

I have a situation where the cursor is sitting in textbox 1.   The user hits 
the tab key and in the leave event of textbox 1 it checks the text property 
seeing if it matches a specific value.  If so, it disables textbox 2 directly 
below it.   So by the user hitting the tab key and this occuring, the cursor 
should be in textbox 3.   Because at the time of hitting the tab key, textbox 
2 was enabled .net just realized that it can't put focus in textbox 2 so it 
cancels the keypress event and leaves the cursor in textbox 2 instead of 
placing it in textbox 3.

This is extremely easy to reproduce and there is a couple of work arounds.   
Is this problem known and will it be fixed anytime soon?   

Thank you...Nathan - GBIS

2. Capture and ignore a control "Leave" event - VB.Net

3. Transparent user control with click through to the control below

4. Labview events and disabled controls on a tab control

5. Click event gets lost when call MSGBOX in leave event

I have a VB .NET application that has a text box with the 
following code to handle the leave event.

    Private Sub txtIDiscountRate_TextChanged(ByVal sender 
As System.Object, ByVal e As System.EventArgs) Handles 
txtIDiscountRate.Leave
        If txtIDiscountRate.Text.Trim <> "" AndAlso _
        MsgBox("Are you sure you want to use a non-
default discount rate?", MsgBoxStyle.OKCancel) _
        = MsgBoxResult.Cancel Then
            'txtIDiscountRate.Text = ""
        End If
    End Sub

There are also several buttons on the same dialog box as 
the text box.  The problem occurs when I have focus on 
the text box and then click on a button.  If the call to 
MSGBOX gets executed (because there is text in the 
textbox) then the button click event never gets called. 
(I have a breakpoint set on the first line of the button 
click event routine.) I've checked (by commenting out 
code) that it is definitely the call to MSGBOX which 
makes the call to the button click routine get lost.

Suggestions please.  Thanks

6. Labels are hidden below tabstrip-controls - Visual Basic/VB

7. disable click (left) on listbox

how can i disable left-click on a list box?
exept from enable=false.
is this possible?



8. Disabling the Mouse Click(esp left mouse)