Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8839143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:10:27+00:00 2026-06-14T10:10:27+00:00

This may sounds stupid, but I can’t access a progressbar in another thread. Yes,

  • 0

This may sounds stupid, but I can’t access a progressbar in another thread. Yes, I’ve invoked it. Check it out:

Delegate Sub ProgressBarCallback(ByVal value As Integer, ByVal max As Integer)


Sub updateProgressBarCurrent(ByVal value As Integer, ByVal max As Integer)

    If Me.progressBar_currentState.InvokeRequired = True Then
        Dim d As New ProgressBarCallback(AddressOf updateProgressBarCurrent)
        Me.progressBar_currentState.Invoke(d, New Object() {value, max})
    Else
        progressBar_currentState.Maximum = max
        If value < max Then
            progressBar_currentState.Value = value
            progressBar_currentState.Refresh()
        End If
    End If

End Sub

I’m calling updateProgressBarCurrent() from a method inside a class. Have a look at the debugger:

Debugger Screenshot

The ProgressBar just doesn’t do anything. Is this because I’m calling the sub updateProgressBarCurrent from a method in my databaseHandler class? How can I fix this?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:10:28+00:00Added an answer on June 14, 2026 at 10:10 am

    Are you using the “default instance” feature for Forms? Kind of No-Go in multithreaded apps!
    There is ONE default instance for EACH thread. So if you call Form1.DoSomething from another thread, you are not calling “your” Form1 but instead a new (invisible, not shown) instance of your Form1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may sounds like a stupid question but can't find anything on google, probably
This may sound like a stupid question but I can't seem to find an
Well, I'm working on a small project, and this may sounds stupid, but I
This may sound like a stupid question, but can DI be used everywhere where
This may sound very stupid question , but I can't find any documentation that
This may sound like a stupid question, but how can I start to use
This question may sound a bit stupid, but I couldn't figure out, how to
This may sound like a completely stupid question, but how can I get the
This may sound stupid but... When I create big SQL commands I want to
This may sound like a stupid question but I'm a beginner not just to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.