|
I agree. Well, then... I guess we will just have to keep our fingers crossed (or keep looking).
|
|
|
|
|
hey do you have the book c# 2013 step by step by Microsoft ? let me know if you want it
|
|
|
|
|
Hi there! Looks like a good learning book. I had a look at the free PDF of Chapter 1 and 10, but I found it to be a little too Windows 8 and Visual Studio 2013 centric. We use Windows 7 and VS 2012 here at work. Does the rest of the book read more as a progressive tutorial, or more like a reference book? How much do want for it?
|
|
|
|
|
|
That's only a sample! Nobody can learn all about C# by reading only chapters 1 and 10. That's why I asked about the rest of the book.
|
|
|
|
|
|
What is a PM???
|
|
|
|
|
How do you check PMs (Private Messages) in Code Project?
|
|
|
|
|
Thank you! Got the entire book. I had to download it from home, since your site was blocked at work.
|
|
|
|
|
|
I have a windows form app, that uses a timer, to update a progress in an infinite loop. After some time, the app hangs and I have to force close it. I need a way to queue the process or any other way, for the app to do something and until the app reaches a certain percent, it should change action.
What I mean is that it should remain doing the first action until the app reaches a certain percent and then change the action, and fix my app from hanging.
Can someone please help me?
Thanks.
|
|
|
|
|
Not without seeing the code. Your explanation doesn't provide any usable information to be able to help you much.
|
|
|
|
|
It sounds to me like you are trying to solve the wrong problem. Rather than changing the action, why not diagnose why the app is hanging in the first place and fixing that problem? This sounds to me like a much more productive use of your time.
|
|
|
|
|
I just fixed it, by using a background worker.
Thanks for your help.
|
|
|
|
|
Without more details, I don't think we can assist you.
1. What is the "process" you refer to: A Thread ? Another Application started with Process.Start ? A while loop running on your main App Thread ?
1.a. Assuming the process is a Thread: what type of Thread; how did you start it ? Does the thread call-back to your main App thread ?
2. What exactly do you mean "update a progress" ? Update a Progress Bar UI element ?
Try to be as clear and specific as possible about what you are doing now.
«To kill an error's as good a service, sometimes better than, establishing new truth or fact.» Charles Darwin in "Prospero's Precepts"
|
|
|
|
|
I worked, for a application that needs to display a lot of data in DataGridView (1000000 Data) But when I run my application the waiting time is 11 minutes.I would like to reduce the waiting time.
I read on the internet that allows virtual mode to launch the application quickly.
But I have not found a tutorial that allows me to do his.
thank you for Help
|
|
|
|
|
|
yes I have seen this link but it is not well explained
|
|
|
|
|
Ibrahim.elh wrote: yes I have seen this link but it is not well explained I've used them in the past to implement virtual mode. Where did you get stuck? What part requires more instructions?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Do you really need to display a million rows to your users? I would suggest that you'll have more success improving performance if you can come up with an alternative view of your data that's more suited to your users needs. I often hear this type of requirement but when you show the users that amount of data they realise that it's completely unworkable.
|
|
|
|
|
yes I have to show as much data.
|
|
|
|
|
I seriously doubt that.
But, Virtual mode[^] is pretty much your only solution.
|
|
|
|
|
Then I feel pity for your users.
How long do you think it is going to take a user to find the one entry in all those 1,000,000 display items that he is interested it? Long enough to uninstall your app with extreme prejudice if they are anything like me!
Page it, filter it, search it - but don't try to show the user more than a couple of hundred items!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
he needs to register 1000000 lines to statistics.
|
|
|
|
|
Assume your application takes zero time to load and display the 1,000,000 records, and the user is able to "register to statistics" (whatever than means) each line in one second.
If the user avoids eating, drinking, sleeping, and bathroom breaks, it will take them 11 days, 13 hours and 47 minutes to process 1,000,000 lines.
By which time, the data will probably be stale, and they'll have to start again.
Find a better way to display the data. Or, better still, find a way to automate the process so that you don't have to display the data at all.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|