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

  • Home
  • SEARCH
  • 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 6870963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:44:52+00:00 2026-05-27T03:44:52+00:00

I have a simple WinForms GUI with multiple TextBox es, CheckBox es, and RadioButton

  • 0

I have a simple WinForms GUI with multiple TextBoxes, CheckBoxes, and RadioButtons for the user to enter / modify data. Everything is loaded / saved from a SQL Server database. How do I warn the user when he wants to close the GUI? Do I query SQL to get data and compare it with what is in the GUI and if there are any differences I simply warn the user? Or is there a better way? Also it’s possible that during that time the user had a window open someone came in and changed something from another computer and the SQL Data would be different than what was orginally loaded into WinForms.

  • 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-27T03:44:53+00:00Added an answer on May 27, 2026 at 3:44 am

    Regarding local changes:
    Keep a local flag that you set to true on any changes for a general message.
    You could have a dictionary if you want to keep track of specific changes.

    To prevent other users from overwriting the data, you could use locking, and prevent others from opening that record, or only allow them to open in read only.

    You can use a time stamp on that record, and check if it has changed since you last read it, then warn the user that the data is no longer the same.

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

Sidebar

Related Questions

I have simple WinForms GUI that I want to use with TabPages. The problem
I have simple WinForms application where modifying Windows Registry. The problem is that in
Problem 1: I have a simple winforms app and I want to DataBind my
I have made a simple test application for the issue, two winforms each containing
i have some WinForms app (Framework to develop some simple apps), written in C#.
i have some WinForms app (Framework to develop some simple apps), written in C#.
I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0.
I have a simple winforms application that I am connecting to my database with
To start off, what I have is a simple Winforms app, with just a
I have a ThreadStateException in my WinForms application. Step to reproduce: Create simple winforms

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.