Hi i've made a C# winforms application. Now i have a form which has lots of buttons, which call huge number crunching functions whose output i update in a textbox. I call the textbox.begininvoke() method to which i pass a delegate to the function which updates the text in the textbox, however when the text is huge, the form is non responsive as i can't click on the cancel button. Isn't there any way so that the whole form remains responsive and as well the update too keeps happening. I have to show the data to the user as it is coming, i can't buffer the whole thing and show in the end. I also tried to implement my own buffer and show data at particular intervals which works great for small amount of text, but in huge amount the UI just doesn't respond. any help? Thanks
updating question as some confusions are arising
- i've called the number crunching function on a separate thread.
- that number crunching function calls the control.begininvoke function whenever data arrives to update the textbox
- MY UI gets to be displayed and i see the output coming, but when the data is huge, i can't do any other activity though i can still see the UI