Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagrid Pin
vbdotnetcoder200511-Aug-06 10:59
vbdotnetcoder200511-Aug-06 10:59 
GeneralRe: datagrid Pin
vengaqua16-Aug-06 22:12
vengaqua16-Aug-06 22:12 
GeneralRe: datagrid Pin
vengaqua10-Aug-06 18:34
vengaqua10-Aug-06 18:34 
QuestionCrystal Report Invalid Key Pin
iamalik9-Aug-06 20:09
professionaliamalik9-Aug-06 20:09 
AnswerRe: Crystal Report Invalid Key Pin
Dave Sexton9-Aug-06 22:10
Dave Sexton9-Aug-06 22:10 
GeneralRe: Crystal Report Invalid Key Pin
iamalik10-Aug-06 0:32
professionaliamalik10-Aug-06 0:32 
QuestionDo I need to delete the class? Pin
IlanTal9-Aug-06 19:33
IlanTal9-Aug-06 19:33 
AnswerRe: Do I need to delete the class? Pin
Dave Sexton9-Aug-06 22:05
Dave Sexton9-Aug-06 22:05 
IlanTal wrote:
Now I'm worried about garbage collection, since Visual Basic isn't Java.


The .NET framework has automatic garbage collection and memory management. You can also use the Dispose() and Finalize() methods of classes.

Suggestion for your code - declare your class and counter variables at modular level and instantiate the class when your chosen event is fired e.g.

Option Strict On

....

'module level class declaration
Dim myScope as ScopeClass

'module level counter variable
Dim stat as integer

Private Sub Test1_Click(....) Handles Test1.Click

   myScope = New ScopeClass
   stat +=1

....

End Sub

Remember to decrement your counter variable if/when you dispose the class (stat -=1).
GeneralRe: Do I need to delete the class? Pin
IlanTal10-Aug-06 3:30
IlanTal10-Aug-06 3:30 
GeneralRe: Do I need to delete the class? Pin
Dave Sexton10-Aug-06 21:35
Dave Sexton10-Aug-06 21:35 
AnswerRe: Do I need to delete the class? Pin
Dave Kreskowiak10-Aug-06 2:39
mveDave Kreskowiak10-Aug-06 2:39 
QuestionAccess DB - Some columns not updating Pin
draynumfa9-Aug-06 12:54
draynumfa9-Aug-06 12:54 
QuestionPlz can anyone help?? Pin
Paul Ferris9-Aug-06 10:39
Paul Ferris9-Aug-06 10:39 
AnswerRe: Plz can anyone help?? Pin
Christian Graus9-Aug-06 11:44
protectorChristian Graus9-Aug-06 11:44 
GeneralRe: Plz can anyone help?? Pin
Paul Ferris10-Aug-06 3:21
Paul Ferris10-Aug-06 3:21 
GeneralRe: Plz can anyone help?? Pin
Christian Graus10-Aug-06 10:59
protectorChristian Graus10-Aug-06 10:59 
QuestionHelp with set up - app. installlation Pin
alexfromto9-Aug-06 10:21
alexfromto9-Aug-06 10:21 
QuestionGreek Characters [modified] Pin
Harold_Wishes9-Aug-06 9:36
Harold_Wishes9-Aug-06 9:36 
QuestionGet source from a web page [modified] Pin
Grags9-Aug-06 9:27
Grags9-Aug-06 9:27 
Questionlistview item update Pin
eatwork9-Aug-06 8:09
eatwork9-Aug-06 8:09 
QuestionVB 2005 How to code an emailing function? Pin
Solly749-Aug-06 8:05
Solly749-Aug-06 8:05 
AnswerRe: VB 2005 How to code an emailing function? Pin
Christian Graus9-Aug-06 11:45
protectorChristian Graus9-Aug-06 11:45 
GeneralRe: VB 2005 How to code an emailing function? Pin
Paul Conrad9-Aug-06 12:13
professionalPaul Conrad9-Aug-06 12:13 
QuestionHow to add a select all button to a OpenFileDialog Pin
Glen Conaway9-Aug-06 7:24
Glen Conaway9-Aug-06 7:24 
QuestionParametric sql command: see actual sql statement Pin
raul.net9-Aug-06 7:17
raul.net9-Aug-06 7:17 

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.