Okay, so I was able to successfully write an event handler on
OnTextChanged to disable textbox3 if textbox2 is not blank but I'm not
sure which "command" I need to connect to my data source and then
populate it the information into textbox3. So far I have this in my
event handler:
Protected Sub DD_jobno_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DD_jobno.TextChanged
If DD_jobno.DataValueField = " " Then
GLAcct.Enabled = True
Else
GLAcct.BackColor = Drawing.Color.Gray
GLAcct.Enabled = False
End If
End Sub
On Oct 20, 4:46 pm, Glenn <[EMAIL PROTECTED]> wrote:
> Use the OnTextChanged event handler for textbox2. If there's text, disable
> #3 or query the data if it's not blank.
>
> ...Glenn
>
>
>
> On Mon, Oct 20, 2008 at 5:29 PM, Imstac <[EMAIL PROTECTED]> wrote:
>
> > I have three textbox controls on a form. If textbox2 is left blank
> > then I want textbox3 to be populated with data that is based on what
> > value is keyed into textbox1. If textbox2 is not left blank then I
> > want textbox3 to be disabled. Is this possible to do? If so, how?- Hide
> > quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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>
-~----------~----~----~----~------~----~------~--~---