Recent content by Sheepings

  1. Sheepings

    Debug mode works, but not RUN mode

    And when you googled or binged around - what did you learn about this error?
  2. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    You're very welcome. Good you got it sorted.
  3. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    You don't need this : While True Debug.Write(s) 'This always runs and is running on non-ui thread End While Remove it, as it was there for example purposes.
  4. Sheepings

    Resolved Return The Results Of An Updated Webform

    You're very welcome.
  5. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    If that where true, you wouldn't be using invoke. What you are doing is not part of the suggested documentation. That's why the background worker comes with events to allow you to talk back to your UI as already outlined. You don't need to take any such code form anywhere. The template works as...
  6. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    You have two options. Run the 19 lines of code I told you to look at. And fit it in with your own project. If you chose the template below. Create a test app to test the code. Debug it, and learn how it works by reading up on documentation for whatever you don't understand. This is what I was...
  7. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    The Implementation on p/#18 is very vague without seeing the whole example the OP wrote from thread start, to delegating back to the UI. @OP I linked you that so you could get an understanding of how to navigate information back to your UI when running on a new thread as shown in my template...
  8. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    Take a look at the first code block only here : Answered - Read or get cell value (Excel) That might give you an idea on how else you can do what you need. However, this method I provided works very similarly to what has already be explained to you above by using a background worker. I suggest...
  9. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    Please show us the relevant code you are having a problem with?
  10. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    Perhaps if you show us the relevant code you are struggling with, we might be of better assistance. What have you tried and where are you stuck?
  11. Sheepings

    Resolved A usercontrol on a form with long running method on BackgroundWorker

    What is your actual problem? Calling the method of the background worker, or understanding how a background worker works? https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/call-statement Or call a function on MSDN which is not much different than calling a...
  12. Sheepings

    Resolved Return The Results Of An Updated Webform

    Pointer : Page.IsPostBack Property (System.Web.UI)
  13. Sheepings

    Answered Read or get cell value (Excel)

    Don't change the code I gave you. After this, you need to read MSDN docs on how to pass parameters to methods. You are seriously lacking the basic understanding of the most simplest steps. Googling your way through a project is the worst way to learn programming. And I am not in a habit of...
  14. Sheepings

    Answered Read or get cell value (Excel)

    Where are you pulling text from? Get some rest, you've been at this all day. And I can't look at it right now either, as my eyes are burning from signing contracts all day. Maybe through the night, JohnH might help you straighten out some of your code, providing he's feeling generous. 😜 If you...
  15. Sheepings

    Answered Read or get cell value (Excel)

    You seem to be getting a little frustrated. Don't kick yourself. You're getting there, so just relax. Some light reading on threads might help : Thread Class (System.Threading) You can find additional info on their docs from that page covering this subject. You had on post 32 : If...
Top Bottom