Click here to Skip to main content
15,903,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionChanging database source for Crystal Reports Pin
DarynRoberts9-Sep-07 22:26
DarynRoberts9-Sep-07 22:26 
AnswerRe: Changing database source for Crystal Reports Pin
Paul Conrad16-Sep-07 8:31
professionalPaul Conrad16-Sep-07 8:31 
QuestionWhat is the Syntaxt to update Database Record in Windows Application? Validate Composite Primary Key ? Pin
Raeem9-Sep-07 22:12
Raeem9-Sep-07 22:12 
QuestionPlease help me with DateTimePicker ShowCheckBox property in GridView. Pin
pcphuc9-Sep-07 21:03
pcphuc9-Sep-07 21:03 
AnswerRe: Please help me with DateTimePicker ShowCheckBox property in GridView. Pin
rohitsrivastava11-Sep-07 0:16
rohitsrivastava11-Sep-07 0:16 
GeneralRe: Please help me with DateTimePicker ShowCheckBox property in GridView. Pin
pcphuc11-Sep-07 0:21
pcphuc11-Sep-07 0:21 
QuestionClean closing Pin
Kevnar9-Sep-07 20:01
Kevnar9-Sep-07 20:01 
AnswerRe: Clean closing Pin
Trupti Mehta9-Sep-07 20:20
Trupti Mehta9-Sep-07 20:20 
The best way to terminate your program is to catch Form Closing event & if button click. In Form Closing, add the following lines:

<object instances=""> = nothing
Me.Dispose()
GC.Collect()

Make sure that you make all of the objects created as Nothing, and then call Me.Dispose. For eg.,
Dim myDataGrid as DataGrid
Dim obj as Object
....


in Form Closing
myDataGrid = Nothing
obj = Nothing

This will make all the objects used as Null & free up all the memory. To remove all such object permanently, it is recommended to use GC.Collect(). GC frees all vars. as Nothing or not used from the memory. This is an Object Oriented concept.

Hope this helps.

Thanks

Terry

GeneralRe: Clean closing Pin
Kevnar9-Sep-07 23:02
Kevnar9-Sep-07 23:02 
AnswerRe: Clean closing Pin
Trupti Mehta9-Sep-07 23:20
Trupti Mehta9-Sep-07 23:20 
AnswerRe: Clean closing Pin
ChandraRam10-Sep-07 0:59
ChandraRam10-Sep-07 0:59 
AnswerRe: Clean closing Pin
Kevnar11-Sep-07 1:03
Kevnar11-Sep-07 1:03 
Questionmajor project in visual basic Pin
vishal dhir9-Sep-07 19:39
vishal dhir9-Sep-07 19:39 
AnswerRe: major project in visual basic Pin
The ANZAC9-Sep-07 22:03
The ANZAC9-Sep-07 22:03 
AnswerRe: major project in visual basic Pin
Dave Kreskowiak10-Sep-07 1:58
mveDave Kreskowiak10-Sep-07 1:58 
QuestionHow to recover delete files from Hard Disk Pin
Software_Guy_1239-Sep-07 18:50
Software_Guy_1239-Sep-07 18:50 
AnswerRe: How to recover delete files from Hard Disk Pin
Dave Kreskowiak10-Sep-07 1:54
mveDave Kreskowiak10-Sep-07 1:54 
GeneralRe: How to recover delete files from Hard Disk Pin
Software_Guy_12310-Sep-07 18:35
Software_Guy_12310-Sep-07 18:35 
QuestionScope of a variable Pin
ASPnoob9-Sep-07 17:53
ASPnoob9-Sep-07 17:53 
AnswerRe: Scope of a variable Pin
Mark Churchill9-Sep-07 18:39
Mark Churchill9-Sep-07 18:39 
AnswerRe: Scope of a variable Pin
Chetan Patel10-Sep-07 0:35
Chetan Patel10-Sep-07 0:35 
QuestionWebBrowser Control Woes Pin
jonnyleroux9-Sep-07 12:03
jonnyleroux9-Sep-07 12:03 
AnswerRe: WebBrowser Control Woes Pin
Mark Churchill9-Sep-07 18:34
Mark Churchill9-Sep-07 18:34 
GeneralRe: WebBrowser Control Woes Pin
jonnyleroux9-Sep-07 21:59
jonnyleroux9-Sep-07 21:59 
QuestionException at address Pin
VFaul9-Sep-07 9:40
VFaul9-Sep-07 9:40 

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.