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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:57:46+00:00 2026-05-11T02:57:46+00:00

I am looking to build a multi-threaded text import facility (generally CSV into SQL

  • 0

I am looking to build a multi-threaded text import facility (generally CSV into SQL Server 2005) and would like to do this in VB.NET but I am not against C#. I have VS 2008 trial and just dont know where to begin. Can anyone point me in the direction of where I can look at and play with the source of a VERY simple multi-threaded application for VS 2008?

Thanks!

  • 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. 2026-05-11T02:57:46+00:00Added an answer on May 11, 2026 at 2:57 am

    The referenced DevX article is from 2001 and .Net Framework 1.1, but today .Net Framework 2.0 provides the BackgroundWorker class. This is the recommended threading class if your application includes a foreground UI component.

    From MSDN Threads and Threading:

    If you need to run background threads that interact with the user interface, the .NET Framework version 2.0 provides a BackgroundWorker component that communicates using events, with cross-thread marshaling to the user-interface thread.

    This example from MSDN BackgroundWorker Class shows a background task, progress %, and cancel option. (The example is longer than the DevX sample, but has a lot more functionality.)

    Imports System.ComponentModel  Partial Public Class Page     Inherits UserControl     Private bw As BackgroundWorker = New BackgroundWorker      Public Sub New()         InitializeComponent()          bw.WorkerReportsProgress = True         bw.WorkerSupportsCancellation = True         AddHandler bw.DoWork, AddressOf bw_DoWork         AddHandler bw.ProgressChanged, AddressOf bw_ProgressChanged         AddHandler bw.RunWorkerCompleted, AddressOf bw_RunWorkerCompleted      End Sub     Private Sub buttonStart_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)         If Not bw.IsBusy = True Then             bw.RunWorkerAsync()         End If     End Sub     Private Sub buttonCancel_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)         If bw.WorkerSupportsCancellation = True Then             bw.CancelAsync()         End If     End Sub     Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)         Dim worker As BackgroundWorker = CType(sender, BackgroundWorker)          For i = 1 To 10             If bw.CancellationPending = True Then                 e.Cancel = True                 Exit For             Else                 ' Perform a time consuming operation and report progress.                 System.Threading.Thread.Sleep(500)                 bw.ReportProgress(i * 10)             End If         Next     End Sub     Private Sub bw_RunWorkerCompleted(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs)         If e.Cancelled = True Then             Me.tbProgress.Text = 'Canceled!'         ElseIf e.Error IsNot Nothing Then             Me.tbProgress.Text = 'Error: ' & e.Error.Message         Else             Me.tbProgress.Text = 'Done!'         End If     End Sub     Private Sub bw_ProgressChanged(ByVal sender As Object, ByVal e As ProgressChangedEventArgs)         Me.tbProgress.Text = e.ProgressPercentage.ToString() & '%'     End Sub End Class 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 88k
  • Answers 88k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Edit: Sorry, I misunderstood your question. I thought you were… May 11, 2026 at 5:43 pm
  • Editorial Team
    Editorial Team added an answer Sorry to do this, but I figured out exactly what… May 11, 2026 at 5:43 pm
  • Editorial Team
    Editorial Team added an answer I've not used KDevelop, however, on the command line you… May 11, 2026 at 5:43 pm

Related Questions

I am trying to determine what the best way is to find variations of
I am looking to build a PC box that can play up to 16
I'm looking to build a quick link directory access widget. e.g. (option 1) 0-9
Can anyone reccomend some good tutorials for ext js and adobe air? The ones

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.