Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Passing credentials from job to application Pin
Mycroft Holmes4-Aug-09 23:10
professionalMycroft Holmes4-Aug-09 23:10 
GeneralRe: Passing credentials from job to application Pin
Johan Hakkesteegt4-Aug-09 23:17
Johan Hakkesteegt4-Aug-09 23:17 
QuestionSend Keys to another application (Hard one) Pin
Kobi_Z4-Aug-09 18:37
Kobi_Z4-Aug-09 18:37 
AnswerRe: Send Keys to another application (Hard one) Pin
dan!sh 4-Aug-09 19:07
professional dan!sh 4-Aug-09 19:07 
GeneralRe: Send Keys to another application (Hard one) Pin
Kobi_Z4-Aug-09 21:53
Kobi_Z4-Aug-09 21:53 
GeneralNOT WORKING Pin
Kobi_Z5-Aug-09 18:40
Kobi_Z5-Aug-09 18:40 
GeneralRe: Send Keys to another application (Hard one) Pin
Kobi_Z6-Aug-09 6:48
Kobi_Z6-Aug-09 6:48 
QuestionMy First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 7:01
William Ralls4-Aug-09 7:01 
I have a VB.NET (VS 2008) main form that shows a second form. The second form has a listbox that has lines of data added for an amortization table based on global variables set in the main form.

The second form has an exit button as its only user control. If the user clicks the exit button while the data is still being calcualted and added to the listbox, the button executes me.close and frmMain.show.

The problem is that if a loan with many months (each month is a line in the listbox) is being displayed, then after the form closes and shows the main form, the second form's code is still running in the background. If I select a new set of loan parameters on the main form while the second form's code is still running, I get an error.

What I need to do is close the second form such that all code running in the form is also killed.

I have also tried this version and the "dispose" does not seem to make any difference.

Private Sub btnCloseAmort_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCloseAmort.Click
        Me.Dispose()
        frmMain.Show()
    End Sub


I will apprechiate any help I can get.

William
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
nlarson114-Aug-09 7:23
nlarson114-Aug-09 7:23 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
N a v a n e e t h4-Aug-09 7:43
N a v a n e e t h4-Aug-09 7:43 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 9:00
William Ralls4-Aug-09 9:00 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Luc Pattyn4-Aug-09 15:00
sitebuilderLuc Pattyn4-Aug-09 15:00 
AnswerDataGridView Pin
David Mujica4-Aug-09 8:04
David Mujica4-Aug-09 8:04 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Christian Graus4-Aug-09 13:24
protectorChristian Graus4-Aug-09 13:24 
QuestionHow to check if TCP/IP connection is active with a device Pin
sohaib_a4-Aug-09 5:26
sohaib_a4-Aug-09 5:26 
AnswerRe: How to check if TCP/IP connection is active with a device Pin
N a v a n e e t h4-Aug-09 7:45
N a v a n e e t h4-Aug-09 7:45 
GeneralRe: How to check if TCP/IP connection is active with a device Pin
sohaib_a4-Aug-09 11:42
sohaib_a4-Aug-09 11:42 
QuestionHot to read uncommon picture format? Pin
Sonhospa4-Aug-09 0:22
Sonhospa4-Aug-09 0:22 
AnswerRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 1:16
sitebuilderLuc Pattyn4-Aug-09 1:16 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 6:26
Sonhospa4-Aug-09 6:26 
GeneralRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 6:52
sitebuilderLuc Pattyn4-Aug-09 6:52 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 8:32
Sonhospa4-Aug-09 8:32 
GeneralRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 8:44
sitebuilderLuc Pattyn4-Aug-09 8:44 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 9:47
Sonhospa4-Aug-09 9:47 
AnswerRe: Hot to read uncommon picture format? Pin
Steven J Jowett4-Aug-09 3:49
Steven J Jowett4-Aug-09 3:49 

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.