Click here to Skip to main content
15,889,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: QR CODE IN ARABIC Pin
Eddy Vluggen22-Mar-18 6:58
professionalEddy Vluggen22-Mar-18 6:58 
QuestionThe application does not close Pin
desanti20-Mar-18 13:13
desanti20-Mar-18 13:13 
AnswerRe: The application does not close Pin
Gerry Schmitz20-Mar-18 17:13
mveGerry Schmitz20-Mar-18 17:13 
GeneralRe: The application does not close Pin
desanti20-Mar-18 17:24
desanti20-Mar-18 17:24 
GeneralRe: The application does not close Pin
Gerry Schmitz20-Mar-18 20:15
mveGerry Schmitz20-Mar-18 20:15 
GeneralRe: The application does not close Pin
desanti21-Mar-18 7:19
desanti21-Mar-18 7:19 
AnswerRe: The application does not close Pin
Ralf Meier20-Mar-18 23:42
mveRalf Meier20-Mar-18 23:42 
AnswerRe: The application does not close Pin
mo149221-Mar-18 2:58
mo149221-Mar-18 2:58 
I'm not sure if I'm missing something but on a quick test, if you have placed
Application.Exit() in your FormClosing event like this:

Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing

Application.Exit()

End Sub

then you will get recursion with another FormClosing() event. In my test, the app did not
hang, however I did get a repeated call to FormClosing(). If you break at Application.Exit() and
then step you will probably get an immediate recursive call.

If you are testing whether to close you should use the args:

Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing

if somecondition = False then
{
e.Cancel = True ' Do not close
}
End Sub

Perhaps if you showed us your code it would be clearer.
GeneralRe: The application does not close Pin
desanti21-Mar-18 9:51
desanti21-Mar-18 9:51 
GeneralRe: The application does not close Pin
mo149221-Mar-18 11:31
mo149221-Mar-18 11:31 
GeneralRe: The application does not close Pin
Eddy Vluggen22-Mar-18 7:00
professionalEddy Vluggen22-Mar-18 7:00 
Questionprinting data to report in crystal report Pin
Kim Gabinete18-Mar-18 7:03
Kim Gabinete18-Mar-18 7:03 
SuggestionRe: printing data to report in crystal report Pin
Richard MacCutchan18-Mar-18 7:40
mveRichard MacCutchan18-Mar-18 7:40 
GeneralRe: printing data to report in crystal report Pin
Mycroft Holmes18-Mar-18 12:57
professionalMycroft Holmes18-Mar-18 12:57 
QuestionRe: printing data to report in crystal report Pin
Eddy Vluggen18-Mar-18 9:09
professionalEddy Vluggen18-Mar-18 9:09 
AnswerRe: printing data to report in crystal report Pin
Gerry Schmitz18-Mar-18 15:49
mveGerry Schmitz18-Mar-18 15:49 
Questionpattern printing Pin
Member 1372813915-Mar-18 3:06
Member 1372813915-Mar-18 3:06 
SuggestionRe: pattern printing Pin
Richard MacCutchan15-Mar-18 4:00
mveRichard MacCutchan15-Mar-18 4:00 
QuestionEntity framework : refreshing a single object from database. Pin
desanti10-Mar-18 15:10
desanti10-Mar-18 15:10 
AnswerRe: Entity framework : refreshing a single object from database. Pin
Dave Kreskowiak11-Mar-18 13:10
mveDave Kreskowiak11-Mar-18 13:10 
AnswerRe: Entity framework : refreshing a single object from database. Pin
Gerry Schmitz12-Mar-18 12:11
mveGerry Schmitz12-Mar-18 12:11 
QuestionI have a question about Visual Basic and Databases... Pin
D. Doulas10-Mar-18 10:29
D. Doulas10-Mar-18 10:29 
QuestionRe: I have a question about Visual Basic and Databases... Pin
Richard MacCutchan10-Mar-18 22:21
mveRichard MacCutchan10-Mar-18 22:21 
AnswerRe: I have a question about Visual Basic and Databases... Pin
D. Doulas11-Mar-18 10:35
D. Doulas11-Mar-18 10:35 
GeneralRe: I have a question about Visual Basic and Databases... Pin
Richard MacCutchan11-Mar-18 22:20
mveRichard MacCutchan11-Mar-18 22:20 

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.