You're not checking the right field.  Your event handler is processing when
the Text property is updated, but you are testing the DataValueField.

...Glenn

On Wed, Oct 22, 2008 at 11:40 AM, Imstac <[EMAIL PROTECTED]> wrote:

>
> Not sure if I added the code right but I still have the same problem
> when I go back and select the blank line in the jobno dropdown list
> the GLAcct textbox still stays disabled.
>
> Here is my code.
>
> Protected Sub DD_jobno_TextChanged(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles DD_jobno.TextChanged
>        If DD_jobno.DataValueField.Trim.Length = 1 Then
>
>            GLAcct.Enabled = True
>
>        Else
>            GLAcct.BackColor = Drawing.Color.Gray
>            GLAcct.Enabled = False
>
>        End If
>
>
>    End Sub
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to