Click here to Skip to main content
15,909,530 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDrop XML into TreeView? Pin
hat_master16-Feb-10 10:12
hat_master16-Feb-10 10:12 
AnswerRe: Drop XML into TreeView? Pin
DaveAuld16-Feb-10 11:02
professionalDaveAuld16-Feb-10 11:02 
GeneralRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:16
William Winner16-Feb-10 11:16 
GeneralRe: Drop XML into TreeView? Pin
DaveAuld16-Feb-10 11:39
professionalDaveAuld16-Feb-10 11:39 
GeneralRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:48
William Winner16-Feb-10 11:48 
GeneralRe: Drop XML into TreeView? Pin
hat_master16-Feb-10 16:30
hat_master16-Feb-10 16:30 
AnswerRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:15
William Winner16-Feb-10 11:15 
QuestionWhat is the best way to return a large amount of related information from a routine? Pin
Euhemerus16-Feb-10 8:23
Euhemerus16-Feb-10 8:23 
I have a routine for displaying to the user, information on the memory which is installed in their system. This routine is currently encapsulated in a class with each piece of information being returned as a property. The class's instantiated object is only used the once.

The routine that provides the class's properties with their information is executed when the class is instantiated from the calling routine requiring the memory information thus:
dim memInfo as new MemoryInformation. The class's code resides in the Public Sub New().


What I would like to know is, is this the best way to go about implementing this sort of functionality? Should I maybe use a Function and return the info in a collection of some sort or should the code in the class's New sub be moved to a separate method instead?


I'm rather new to OO programming and haven't got my head round when is the best time to use a class instead of a function. Any help would be greatly appreciated.
No trees were harmed in the posting of this missive; however, a large number of quantum states were changed.

AnswerRe: What is the best way to return a large amount of related information from a routine? Pin
William Winner16-Feb-10 9:40
William Winner16-Feb-10 9:40 
GeneralRe: What is the best way to return a large amount of related information from a routine? Pin
Euhemerus16-Feb-10 10:53
Euhemerus16-Feb-10 10:53 
Questionchange font format of button Pin
Coloniac16-Feb-10 8:05
Coloniac16-Feb-10 8:05 
AnswerRe: change font format of button Pin
Luc Pattyn16-Feb-10 8:31
sitebuilderLuc Pattyn16-Feb-10 8:31 
AnswerRe: change font format of button Pin
Coloniac16-Feb-10 9:09
Coloniac16-Feb-10 9:09 
GeneralRe: change font format of button Pin
Luc Pattyn16-Feb-10 9:18
sitebuilderLuc Pattyn16-Feb-10 9:18 
AnswerRe: change font format of button Pin
Euhemerus16-Feb-10 8:34
Euhemerus16-Feb-10 8:34 
AnswerRe: change font format of button Pin
David Skelly16-Feb-10 22:47
David Skelly16-Feb-10 22:47 
Questionautomatic login with webbrowser Pin
gokhan üstüner16-Feb-10 2:42
professionalgokhan üstüner16-Feb-10 2:42 
AnswerRe: automatic login with webbrowser Pin
DaveAuld16-Feb-10 2:50
professionalDaveAuld16-Feb-10 2:50 
AnswerRe: automatic login with webbrowser Pin
DaveAuld16-Feb-10 3:38
professionalDaveAuld16-Feb-10 3:38 
Questionhow to Tracking windows application? Pin
police_0104016-Feb-10 1:42
police_0104016-Feb-10 1:42 
AnswerRe: how to Tracking windows application? Pin
DaveAuld16-Feb-10 2:09
professionalDaveAuld16-Feb-10 2:09 
GeneralRe: how to Tracking windows application? Pin
police_0104016-Feb-10 2:29
police_0104016-Feb-10 2:29 
GeneralRe: how to Tracking windows application? Pin
DaveAuld16-Feb-10 2:35
professionalDaveAuld16-Feb-10 2:35 
Questionhow to get burned date on CDRom? Pin
phowarso15-Feb-10 23:38
phowarso15-Feb-10 23:38 
AnswerRe: how to get burned date on CDRom? Pin
Dave Kreskowiak16-Feb-10 2:16
mveDave Kreskowiak16-Feb-10 2:16 

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.