Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

"UpdateEvent"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chad Z. Hower - 14 Jan 2007 10:25 GMT
I'm looking for some kind of form level event that I can hook/add/use
to tell me when ever some input control has changed its state. As a
hack currently I set KeyPreview to true and hooked the KeyPress event.
This works great for text boxes etc, but if a user uses the mouse to
select someting in a listbox it doesnt catch it of course.

The idea is something like this, in the even I want to check the state
of the inputs and enable disable for example the Save button. Delphi
had a neat way to do this with actionlist and I know there are free and
3P action lists for .NET, but this is an existing WinForms app and I
cant redo it. I just need a basic event I can hook to properly
enable/disable controls. The other "hack" option is a timer, but thats
pretty ugly too.

I've also considered hooking into the windows message pipe and ignoring
obvious ones like WM_Paint etc, but again I'd like to avoid this and
find something else. Anyone have any suggestions?

Signature

Chad Z. Hower
Microsoft Regional Director
"Programming is an art form that fights back"
http://www.KudzuWorld.com/
Need a professional technical speaker at your event?
http://www.woo-hoo.net

Chad Z. Hower - 14 Jan 2007 10:35 GMT
> I'm looking for some kind of form level event that I can hook/add/use
> to tell me when ever some input control has changed its state. As a

Just after I posted this I decided to check on of the free ActionList
components to see what it uses. Application.Idle for anyone else who is
interested.

Will wrap that to auto unlink the forms that use it. Should work fine
that way.

Signature

Chad Z. Hower
Microsoft Regional Director
"Programming is an art form that fights back"
http://www.KudzuWorld.com/
Need a professional technical speaker at your event?
http://www.woo-hoo.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.