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 9207465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:23:36+00:00 2026-06-18T00:23:36+00:00

Here are some things which I don’t know how to do properly in .Net

  • 0

Here are some things which I don’t know how to do properly in .Net but I’m sure that some solution surely exists.

I have form which is open like dialog and under (that) form_load I have some checks of data and after that I call a procedure which may take 10 seconds to process.
During this time my form is not showed until my process don’t finish and I can see some ‘garbage of menu’ in my main form instead of progressbar in those new form which is in process.

Second thing I see and which may be close to first problem is that in some of my forms progressbar don’t comes to end when results of some process is showed but program (for progressbar) is maked properly. It seem’s like progressbar work in some asynchronous task.

How to fix those problems and get my form showed before my procedure starts?
How to get progressbar to show a value reliable? Or I can say beter like it works in VB6?

For first problem I try:

Me.Activate
or 
Me.Refresh

Call myProcedureWithProgressBar(myArgs)

From Form_Load but without results.
Form is showed when my procedure finishes but should be showed before.

  • 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-18T00:23:37+00:00Added an answer on June 18, 2026 at 12:23 am

    Event Form_Load executes the code before showing the Form. You can create a Timer and use this to automatically execute code after form load:

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Timer1.Start()
    End Sub
    
    Private Sub OnFormLoaded(sender As Object, e As EventArgs) Handles Timer1.Tick
        Timer1.Enabled = False
    
        '...
    End Sub
    

    And make sure you stop the timer on the method like I did, and make sure you prevent user to do something that could interfiere with the execution (clicking buttons, closing form…). Hope it helps.


    And about the ProgressBar issue, I don’t know what could be the problem without more information or code. Maybe you can try something like this:

    Public Sub UpdateProgressBar(ByVal cont As Integer, ByVal max As Integer, ByRef objTarget As ProgressBar)
        Dim dProgress As Double = cont * 100 / max
        objTarget.Value = CInt(dProgress)
        objTarget.Refresh()
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm guessing there is a simple solution here, but I've tried some things and
I want to decouple some things in my code so that I don't have
I have a div tag which looks something like this: <div id=some id here
Here is some representative code that gets the error I'm experiencing: class Data {
I'm trying to write a function in Haskell which checks for some things and
I'm so close here and I've tried many things but cannot get it to
Choices I am learning OOP PHP, but some things are really confusing. I have
I am reading about HHT caching, found a website article here which explains some
I've got some things in my mind, I thought I'd ask the veterans here.
something driver me crazy here i have a big HTML template which i can't

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.