Dinesh

Dinesh

  • NA
  • 2
  • 0

Help With Windows Form Programming in C#

Jan 11 2007 12:40 AM
Hi, i am currently working on an application in C# that allows users to add data to a database, search the database as well as update and delete entries in the database. The problem i'm having is this: When i click on the update button (in Form 1), a second form opens up prompting a user to enter a password. this is to prevent unauthorised users from updating or deleting the database. In this second form there is only 1 text box in which the user must input the password. After clicking on submit, the form verifies the password. This is where my problem lies. How do i get the original form to proceed with the updating of the database (in Form 1) if the password entry within Form 2 is successful?? I thought of passing back a boolean variable from Form 2 to Form 1. But i just dont know how to go about passing back variables. I know how to pass variables from Form 1 to Form 2 but how do i pass variables from Form 2 to Form 1?? I desperately need help on this. Thanks.