15,794,120 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by andywawa (Top 7 by date)
andywawa
13-Jul-11 4:20am
View
Hi John,
thanks for your answer. To write a custom Event is one thing, but what fires the Event actually? Let's say I've got 15 TextBoxes on each TabPage. You surely don't mean, that I should implement my Event on every TextBox TextChanged-Event?
andywawa
25-May-11 5:27am
View
Hello SA, hello Alan,
thanks for your answers. Hmm, it's pretty complicated. After reviewing all your links, documentations etc. the picture is still not much as clear as I hoped. I wish I could have from you (if it were possible) a following manual:
1. design decision: a form, a button, some methods on it should run in "classical" top-down manner, but NOT as a single thread (form freezes...) and wating for each other to be complited.
2. what to use: background worker or ansynchronous method (pros and cons?)
3. simple working example
4. that would be (from my point of view) a perfect manual. For a beginner it's hard enough. :-)
Regards
andywawa
24-May-11 9:51am
View
Hi Alan,
thanks for your answer. I've already tried to solve my problem using BackgroundWorker, but it will not work with the completion event.
Unfortunately your solution doesn't work either. I suppose I place the next action (in my case the method no. 3 under the button after copying) in "finally" block. There is also a method 4 as well and the program tries to start with the method 4 immidiately and crashes, for copying must be finished befor the method 4 can start...
Regards
andywawa
24-May-11 2:55am
View
Hi,
can you help any further? I'd stucked..
Best regards
andywawa
23-May-11 5:12am
View
Hi, thanks for your answer and working example. That explains a lot (I'm still reading your code, some things are new to me..). Anyway: I still don't know how to put other methods together and make them work top-down? My goal: every single step should wait for complition of the previous one (copying, installing, executing some scripts, copying, install other routine etc.). At every single step I want to show the progress bar stating the app-progress. How to make the single-methods wait "for each other"? As I said: it's essential that one method waits for another one to be finished for there is no point trying to ínstall before some files needed for the installation are not copied yet etc. How to put the single steps together ( a Queue or something)? Thanks for any hints.
andywawa
23-May-11 4:03am
View
Thanks for your answer. Hm, there is another problem with background worker.
1. The worker doesn't "wait" and comes immidiately back to method that calls him. Acutally it's essential to me, that all the methods are running top-down (first: coopying, then installing, otherwise it makes no sense..) I know, I could put the next method calls in the worker method "on complition", but it means I'd have to change o lot in my code. Is there any other method to run progress bar without using the background worker?
Thanks
andywawa
9-May-11 8:01am
View
ups, sorry for posting the answers..
thank you for the answer. Ok, I can see what you mean. I'm fully aware that my solution with the different threads is a bit cumbersome, but I still don't know the proper approach to solve my problem? Simply put: I need an idea how a professional programmer (not a new-be just like me) would do it?
Andy
Show More