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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:55:41+00:00 2026-05-13T10:55:41+00:00

I’m looking for a strategy on how to structure a VB.net GUI app. I

  • 0

I’m looking for a strategy on how to structure a VB.net GUI app. I have a application that is basically an interface to a database. It is comprised of a TabControl with 6 tabs, each tab has a few custom controls and performs a business operation on the database.

Tab Functions:

  1. Parse an XLS into SQL inserts and commit to db

  2. Generate an XLS from db query results

  3. Generate an XLS from db query results

  4. Quick access data lookup from the db (write to log box)

  5. Manual database modification via GUI form (insert / update statement execution)

  6. DB connection settings

Common Code Functions:

  1. Connecting/disconnecting to/from the DB

  2. Executing non-queries

  3. Executing queries

  4. Iterating over query results

  5. Writing to an XLS

  6. Common subqueries (DB provider doesn’t allow views)

Currently I’ve got most all of the operations built into event handler functions on the GUI thread. I’d like to move to a more object-oriented structure for code reusability and easier multi-threading.

I’m struggling with a few design things:

  1. What objects / classes makes sense?

  2. Are there industry-standard best practices or design patterns around separating GUI and backend functionality? Any particularly good articles I should read?

  3. Is BackgroundWorker the best way to execute the backend functions?

Thanks-

Jonathan

  • 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-05-13T10:55:41+00:00Added an answer on May 13, 2026 at 10:55 am
    1. …is probably too big a question to be readily answered; sorry. But you can make a reasonable first pass by the traditional “looking for nouns” technique.

    2. For Windows Forms, check out Model-View-Controller or Model-View-Presenter. (If you use WPF or Silverlight on a future project, you’ll want to check out an alternative pattern called Model-View-ViewModel, but that doesn’t work too well with WinForms.)

    3. Yes, BackgroundWorker is a good bet for WinForms background tasks because it provides a convenient way to deliver progress and completion notifications. It does have some limitations, but explicit threading via Thread or ThreadPool would probably be superfluous here, and would just lead to extra code for GUI feedback. So go with BackgroundWorker at least as a starting point and consider explicit threading only if it starts to cause you pain.

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

Sidebar

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.