Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Prevent Closing Forms at International Chat: Software related forum; In VB.Net using NeroCOM, how do you prevent a user from closing a form during the burn process. This is the code I have used on the Form_Closing event... Private Sub Form2_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing If StillBurn = True Then


Reply
 
Thread Tools
Old 12-08-2004   #1 (permalink)
New on Forum
 
Join Date: Jul 2004
Posts: 11
Prevent Closing Forms

In VB.Net using NeroCOM, how do you prevent a user from closing a form during the burn process.

This is the code I have used on the Form_Closing event...

Private Sub Form2_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If StillBurn = True Then
MessageBox.Show("Backup Still In Process, Please Wait!", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
Else
Application.Exit()
End If
End Sub
NYASMark is offline   Reply With Quote
Old 12-08-2004   #2 (permalink)
New on Forum
 
Join Date: Aug 2004
Posts: 10
Re: Prevent Closing Forms

Private Sub Form2_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing

If StillBurn Then
e.Cancel=True
End If

End Sub
DWizard100 is offline   Reply With Quote
Old 13-08-2004   #3 (permalink)
New on Forum
 
Join Date: Jul 2004
Posts: 11
Re: Prevent Closing Forms

Thanx, How could I have missed that!!

NYASMark is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Forms Hitech General Software 10 02-10-2007 02:53
The various forms and sizes of MONEY Mr. Belvedere CD Freaks Living Room 38 25-06-2007 19:22
Can "closing" or "not closing" a DVD-R make a difference for compatibility? achookang Newbie Forum 4 27-08-2005 21:02
Legal Forms for PC Samp2k CD Freaks Living Room 1 18-10-2001 05:09


All times are GMT +2. The time now is 09:05.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0