Click here to Skip to main content
15,898,790 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSendMessage not working for CheckBox Pin
scot_in18-Dec-08 1:04
scot_in18-Dec-08 1:04 
AnswerRe: SendMessage not working for CheckBox Pin
Dave Kreskowiak18-Dec-08 3:55
mveDave Kreskowiak18-Dec-08 3:55 
GeneralRe: SendMessage not working for CheckBox [modified] Pin
scot_in18-Dec-08 17:19
scot_in18-Dec-08 17:19 
AnswerRe: SendMessage not working for CheckBox Pin
arnold_w4-May-21 5:30
arnold_w4-May-21 5:30 
QuestionClass/Object Question Pin
RGVChris18-Dec-08 0:56
RGVChris18-Dec-08 0:56 
AnswerRe: Class/Object Question Pin
Jay Royall18-Dec-08 1:44
Jay Royall18-Dec-08 1:44 
GeneralRe: Class/Object Question Pin
RGVChris18-Dec-08 1:52
RGVChris18-Dec-08 1:52 
GeneralRe: Class/Object Question Pin
Dave Kreskowiak18-Dec-08 3:52
mveDave Kreskowiak18-Dec-08 3:52 
It won't work for a couple of reasons. First, you reusing your loop variable as an instance of an object. What is n supposed to be?? Is it the loop variable or is it an object? It can't be both.

Second, your creating an instance of a class and then, on the next iteration of the loop, your replacing that instance with a new one. On top of that, since you're not adding these instances to a collection anywhere, the only remaining instance, when the loop terminates, goes out of scope and is destroyed. You have to add these to a collection somewhere to hang onto them.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Class/Object Question Pin
RGVChris18-Dec-08 4:04
RGVChris18-Dec-08 4:04 
GeneralRe: Class/Object Question Pin
Dave Kreskowiak18-Dec-08 4:08
mveDave Kreskowiak18-Dec-08 4:08 
GeneralRe: Class/Object Question Pin
Jay Royall18-Dec-08 4:12
Jay Royall18-Dec-08 4:12 
GeneralRe: Class/Object Question Pin
RGVChris18-Dec-08 4:21
RGVChris18-Dec-08 4:21 
QuestionHow to create consolidate setup for an application built in VB 2005 Pin
kennylal18-Dec-08 0:47
kennylal18-Dec-08 0:47 
AnswerRe: How to create consolidate setup for an application built in VB 2005 Pin
Dave Kreskowiak18-Dec-08 3:45
mveDave Kreskowiak18-Dec-08 3:45 
Questionexplore the folders in vb Pin
phokojoe17-Dec-08 23:26
phokojoe17-Dec-08 23:26 
AnswerRe: explore the folders in vb Pin
Ashfield18-Dec-08 0:05
Ashfield18-Dec-08 0:05 
AnswerRe: explore the folders in vb Pin
LloydA11119-Dec-08 8:34
LloydA11119-Dec-08 8:34 
QuestionHotel reservation Pin
WebMaster17-Dec-08 23:14
WebMaster17-Dec-08 23:14 
QuestionRe: Hotel reservation Pin
Smithers-Jones17-Dec-08 23:32
Smithers-Jones17-Dec-08 23:32 
AnswerRe: Hotel reservation Pin
Jay Royall17-Dec-08 23:46
Jay Royall17-Dec-08 23:46 
AnswerRe: Hotel reservation Pin
Christian Graus17-Dec-08 23:57
protectorChristian Graus17-Dec-08 23:57 
AnswerRe: Hotel reservation Pin
Nanda_MR17-Dec-08 23:58
Nanda_MR17-Dec-08 23:58 
GeneralRe: Hotel reservation Pin
Christian Graus18-Dec-08 0:02
protectorChristian Graus18-Dec-08 0:02 
GeneralRe: Hotel reservation Pin
Nanda_MR18-Dec-08 0:23
Nanda_MR18-Dec-08 0:23 
GeneralRe: Hotel reservation Pin
LloydA11119-Dec-08 8:44
LloydA11119-Dec-08 8:44 

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.