Click here to Skip to main content
15,914,317 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Where Can i find a VB.Net Employee Starter Kit Pin
Ashfield2-Oct-08 21:14
Ashfield2-Oct-08 21:14 
AnswerRe: Where Can i find a VB.Net Employee Starter Kit Pin
Dave Kreskowiak3-Oct-08 1:45
mveDave Kreskowiak3-Oct-08 1:45 
GeneralRe: Where Can i find a VB.Net Employee Starter Kit Pin
MidwestLimey3-Oct-08 8:29
professionalMidwestLimey3-Oct-08 8:29 
Questionambiuous namespace Pin
George Mathew2-Oct-08 16:21
George Mathew2-Oct-08 16:21 
AnswerRe: ambiuous namespace Pin
HemJoshi2-Oct-08 20:16
HemJoshi2-Oct-08 20:16 
AnswerRe: ambiuous namespace Pin
Dave Kreskowiak3-Oct-08 1:42
mveDave Kreskowiak3-Oct-08 1:42 
QuestionHow to read and write Encrypted file by vb 6.0 Pin
ejaz_pk2-Oct-08 10:50
ejaz_pk2-Oct-08 10:50 
QuestionPostponing Close until all application windows are closed Pin
JudyV2-Oct-08 5:37
JudyV2-Oct-08 5:37 
I have an application with a main window that shows a gridview of records that can be selected and buttons along the bottom that offer options either updating one of the records or creating a new one. I use the same for for both of these functions I just make cosmetic changes to the title and buttons depending on which function the user chooses. When the user chooses to add a new record to the database a new record is created and loaded into the form. The user may then put whatever data they require into the record then they must then choose to either save the record or cancel out of the form which then deletes the blank record from the database. The only way to close this form is to select one of those options. The problem I am running into is that apparently the users are opening a form to input a new record then becoming distracted by phone calls or other processes and forgetting that they have this form open. When they return to the app they are just closing the main form which of course closes all of it's open forms which then leaves me with blank records in my database.

What I would like to do is to perform a check before I close the main window to see if any other windows have been left open and run through my code to delete the database record before the application completely closes. I can use the FindWindow function to check for the open window on the window closing event of my main window but am at a loss as to how to stop the window from closing until I manage the situation.

Can anyone offer me any suggestions?

Thanks for all your help,
Judy
AnswerRe: Postponing Close until all application windows are closed Pin
jzonthemtn2-Oct-08 5:58
jzonthemtn2-Oct-08 5:58 
GeneralRe: Postponing Close until all application windows are closed Pin
JudyV2-Oct-08 6:08
JudyV2-Oct-08 6:08 
QuestionHow Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 3:04
RaltonLewis2-Oct-08 3:04 
QuestionRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 3:42
richardw482-Oct-08 3:42 
AnswerRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 3:55
RaltonLewis2-Oct-08 3:55 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:12
richardw482-Oct-08 4:12 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 4:26
RaltonLewis2-Oct-08 4:26 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:44
richardw482-Oct-08 4:44 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:59
richardw482-Oct-08 4:59 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 7:11
RaltonLewis2-Oct-08 7:11 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 9:02
richardw482-Oct-08 9:02 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 10:19
RaltonLewis2-Oct-08 10:19 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 22:06
richardw482-Oct-08 22:06 
Questionopen window using vb Pin
jhyn2-Oct-08 2:07
jhyn2-Oct-08 2:07 
AnswerCheck this CodeProject article Pin
David Mujica2-Oct-08 3:04
David Mujica2-Oct-08 3:04 
QuestionRe: open window using vb Pin
richardw482-Oct-08 3:45
richardw482-Oct-08 3:45 
AnswerRe: open window using vb Pin
jhyn2-Oct-08 15:50
jhyn2-Oct-08 15:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.