Click here to Skip to main content
13,247,448 members (77,727 online)

Comments by Gabriel Szabo (Top 3 by date)

Gabriel Szabo 13-Aug-17 13:37pm View
UI controls are not updating because your long running method blocks the application event pump. Quick (but dirty) solution is to call Refresh() on the progress bar after advancing it (e.g. after PerformStep()). You can also call Application.DoEvents(), which will process all queued events. Background worker is the cleanest solution.
Gabriel Szabo 17-Oct-13 4:15am View
And remember not to run this code on midnight... ;)
Gabriel Szabo 16-Oct-13 11:32am View
Your code is returning only one node because you are filtering "Login" elements by their "UserName" child element's value. You only get the "UserName" element whose value is equal to txtuname.Text.

For examplpe, if you remove the where clause, you will get "UserName" child elements for all your "Login" elements.

What exactly is your intent?

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid