Click here to Skip to main content
15,887,374 members
Home / Discussions / C#
   

C#

 
QuestionIncrementing a Progress Bar in DAL layer Pin
Wheels01222-Jul-09 9:43
Wheels01222-Jul-09 9:43 
AnswerRe: Incrementing a Progress Bar in DAL layer Pin
Abhijit Jana22-Jul-09 9:48
professionalAbhijit Jana22-Jul-09 9:48 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01223-Jul-09 1:24
Wheels01223-Jul-09 1:24 
AnswerRe: Incrementing a Progress Bar in DAL layer Pin
PIEBALDconsult22-Jul-09 14:16
mvePIEBALDconsult22-Jul-09 14:16 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01223-Jul-09 8:15
Wheels01223-Jul-09 8:15 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Abhijit Jana23-Jul-09 10:40
professionalAbhijit Jana23-Jul-09 10:40 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01224-Jul-09 1:18
Wheels01224-Jul-09 1:18 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
PIEBALDconsult24-Jul-09 4:36
mvePIEBALDconsult24-Jul-09 4:36 
Wheels012 wrote:
time.Tick += new EventHandler(IncreaseProgressBar);


Instead I would do something like:

dal.OnProgress += IncreaseProgressBar ;

Bear in mind that when using a thread to do the work, IncreaseProgressBar will need to check InvokeRequired and call Invoke if needed.

This way, when the dal has an update, it will execute IncreaseProgressBar itself without having to know what it does or why.

If you haven't learned events[^] yet, this would be a good time.
QuestionPointers to events. Pin
Douglas Kirk22-Jul-09 9:37
Douglas Kirk22-Jul-09 9:37 
AnswerRe: Pointers to events. Pin
Luc Pattyn22-Jul-09 10:28
sitebuilderLuc Pattyn22-Jul-09 10:28 
AnswerRe: Pointers to events. Pin
Gideon Engelberth22-Jul-09 12:43
Gideon Engelberth22-Jul-09 12:43 
QuestionCode for deletion from database at form level when deleting values from data gridview using check box column and a button for delete. Pin
Omar Akhtar Sheikh22-Jul-09 8:22
Omar Akhtar Sheikh22-Jul-09 8:22 
AnswerRe: Code for deletion from database at form level when deleting values from data gridview using check box column and a button for delete. [modified] Pin
Blue_Boy22-Jul-09 8:50
Blue_Boy22-Jul-09 8:50 
QuestionSendKeys {Enter} clears textbox Pin
hpydir22-Jul-09 5:53
hpydir22-Jul-09 5:53 
AnswerRe: SendKeys {Enter} clears textbox Pin
Muhammad Mazhar22-Jul-09 6:12
Muhammad Mazhar22-Jul-09 6:12 
QuestionAccessing the HTML in WebBrowser difficulty Pin
Michael Potter22-Jul-09 3:41
Michael Potter22-Jul-09 3:41 
AnswerRe: Accessing the HTML in WebBrowser difficulty Pin
Muhammad Mazhar22-Jul-09 4:25
Muhammad Mazhar22-Jul-09 4:25 
AnswerRe: Accessing the HTML in WebBrowser difficulty Pin
led mike22-Jul-09 4:31
led mike22-Jul-09 4:31 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
Michael Potter22-Jul-09 5:08
Michael Potter22-Jul-09 5:08 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
led mike22-Jul-09 5:55
led mike22-Jul-09 5:55 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
Adam R Harris22-Jul-09 6:14
Adam R Harris22-Jul-09 6:14 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
Michael Potter22-Jul-09 10:01
Michael Potter22-Jul-09 10:01 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
Adam R Harris22-Jul-09 10:12
Adam R Harris22-Jul-09 10:12 
GeneralRe: Accessing the HTML in WebBrowser difficulty Pin
Michael Potter23-Jul-09 3:45
Michael Potter23-Jul-09 3:45 
AnswerRe: Accessing the HTML in WebBrowser difficulty - SOLVED [modified] Pin
Michael Potter23-Jul-09 9:23
Michael Potter23-Jul-09 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.