Re: How to detect textbox or dropdownlist is modified
From: Steven Stein [MSFT] (sstein_at_online.microsoft.com)
Date: 02/03/04
- Next message: James Westgate [Crainiate]: "Re: Getting reference to parent form"
- Previous message: Herfried K. Wagner [MVP]: "Re: bouncing progresscontrol?"
- In reply to: ton: "Re: How to detect textbox or dropdownlist is modified"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 03 Feb 2004 23:14:33 GMT
Ton -
Is this a Web or Windows app?
If it's a Web app you can add some client-side scripting if you do not want
to make a round trip to the server.
If it's a Windows app the TextBox has a TextChanged event that fires when
the text changes. In this event handler you can add code to do what you
want when the text changes.
Steve Stein
VB Team
This posting is provided "AS IS" with no warranties and confers no rights.
--------------------
>From: "ton" <vrs@home.nl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>Subject: Re: How to detect textbox or dropdownlist is modified
>Date: Tue, 3 Feb 2004 15:06:01 +0100
>Organization: @Home Benelux
>Lines: 64
>Message-ID: <bvoa8e$38l$1@news4.tilbu1.nb.home.nl>
>References: <bv84sf$b5i$1@news1.tilbu1.nb.home.nl>
<XTNKUyc6DHA.568@cpmsftngxa07.phx.gbl>
>NNTP-Posting-Host: cp264278-a.venra1.lb.home.nl
>X-Trace: news4.tilbu1.nb.home.nl 1075817550 3349 212.204.171.245 (3 Feb
2004 14:12:30 GMT)
>X-Complaints-To: abuse@home.nl
>NNTP-Posting-Date: Tue, 3 Feb 2004 14:12:30 +0000 (UTC)
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.gamma.ru!Gamma.RU!ne
ws.tele.dk!news.tele.dk!small.news.tele.dk!news2.telebyte.nl!newshub1.home.n
l!home.nl!not-for-mail
>Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:178455
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb
>
>I'm not sure how to do so, since the controls are added dynamically in
>Protected Overrides Sub CreateChildControls()
>
>with the added event to save the record i can find each textbox, but there
>is no property for TextChanged. Or do you mean that I should fire this
event
>to the server, where i can handle it. But is this a good approach ? It
looks
>if the app will go back for the server each time some one modifies a field,
>for what reason ?
>
>Ton
>
>
>
>""Steven Stein [MSFT]"" <sstein@online.microsoft.com> schreef in bericht
>news:XTNKUyc6DHA.568@cpmsftngxa07.phx.gbl...
>> Ton -
>>
>> You can monitor events that tell you when these values change. Try the
>> TextChanged event for the TextBoxes and ComboBoxes, and the CheckChanged
>> event of the checkboxes.
>>
>>
>> hope that helps
>>
>> Steve Stein
>> VB Team
>>
>> This posting is provided "AS IS" with no warranties and confers no
rights.
>>
>> --------------------
>> >From: "ton" <vrs@home.nl>
>> >Newsgroups: microsoft.public.dotnet.languages.vb
>> >Subject: How to detect textbox or dropdownlist is modified
>> >Date: Wed, 28 Jan 2004 11:52:49 +0100
>> >Organization: @Home Benelux
>> >Lines: 5
>> >Message-ID: <bv84sf$b5i$1@news1.tilbu1.nb.home.nl>
>> >NNTP-Posting-Host: cp264278-a.venra1.lb.home.nl
>> >X-Trace: news1.tilbu1.nb.home.nl 1075287759 11442 212.204.171.245 (28
Jan
>> 2004 11:02:39 GMT)
>> >X-Complaints-To: abuse@home.nl
>> >NNTP-Posting-Date: Wed, 28 Jan 2004 11:02:39 +0000 (UTC)
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Path:
>>
>cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
u
>>
>l.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news2.telebyte.
n
>> l!newshub1.home.nl!home.nl!not-for-mail
>> >Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:176783
>> >X-Tomcat-NG: microsoft.public.dotnet.languages.vb
>> >
>> >How can I detect that the user has modified the data on the page where
>> >several textboxes, checkboxes and dropdownlist exist.
>> >Ton
>> >
>> >
>> >
>>
>
>
>
- Next message: James Westgate [Crainiate]: "Re: Getting reference to parent form"
- Previous message: Herfried K. Wagner [MVP]: "Re: bouncing progresscontrol?"
- In reply to: ton: "Re: How to detect textbox or dropdownlist is modified"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|