Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmonitor processes in VB.net Pin
Ali el4-Apr-06 1:31
Ali el4-Apr-06 1:31 
AnswerRe: monitor processes in VB.net Pin
KreativeKai4-Apr-06 9:02
professionalKreativeKai4-Apr-06 9:02 
GeneralRe: monitor processes in VB.net Pin
Anubhava Dimri24-Nov-08 21:22
Anubhava Dimri24-Nov-08 21:22 
AnswerRe: monitor processes in VB.net Pin
KreativeKai25-Nov-08 3:33
professionalKreativeKai25-Nov-08 3:33 
QuestionVB.NET Pin
chitradash4-Apr-06 0:35
chitradash4-Apr-06 0:35 
AnswerRe: VB.NET Pin
Steve Pullan4-Apr-06 0:43
Steve Pullan4-Apr-06 0:43 
GeneralRe: VB.NET Pin
chitradash4-Apr-06 1:58
chitradash4-Apr-06 1:58 
GeneralRe: VB.NET Pin
Steve Pullan4-Apr-06 3:23
Steve Pullan4-Apr-06 3:23 
Assume that we have a class Class1 and that there is a member variable _counter which is an integer only used inside the class. Further assume a second member variable _timeStamp of type Date and we wish callers of Class1 to manipulate it. The definition code would be something like this: (NB: code may not be syntactically correct)

Class Class1

Private _counter As Integer    ' this is a field - not visible outside
                               ' the class
Private _timeStamp As Date     ' so is this except it will only be 
                               ' visible to callers via Get and Set

Public Property Get TimeStamp() As Date
    ' Return the value of the backing variable
    TimeStamp = _timeProperty
End Property

Public Property Set TimeStamp(ByVal newTimeStamp As Date)
    ' Set the backing variable to the value in newTimeStamp
    _timeStamp = newTimeStamp
End Property

Public Sub DoSomeProcess()
    ' Note that _counter may be used but not directly
    ' manipulated by any caller of Class1's Subs and Functions.
    _counter += 1
End Function


End Class


...Steve

1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life."
I read that somewhere once Smile | :)
Questiondeploying a vb.net as a web page using asp.net Pin
preci3-Apr-06 22:51
preci3-Apr-06 22:51 
QuestionExcel file data transfer to database Pin
kinjal.vora3-Apr-06 22:37
kinjal.vora3-Apr-06 22:37 
QuestionPLZZ HELP ME WITH VB/MS ACCESS (ISBN LOOKUP) Pin
dam823-Apr-06 20:44
dam823-Apr-06 20:44 
AnswerRe: PLZZ HELP ME WITH VB/MS ACCESS (ISBN LOOKUP) Pin
Steve Pullan4-Apr-06 0:06
Steve Pullan4-Apr-06 0:06 
AnswerRe: PLZZ HELP ME WITH VB/MS ACCESS (ISBN LOOKUP) Pin
FrankyT4-Apr-06 13:38
FrankyT4-Apr-06 13:38 
Questionhow to populate MSHFlexGrid Pin
wilde3-Apr-06 17:18
wilde3-Apr-06 17:18 
AnswerRe: how to populate MSHFlexGrid Pin
Christian Graus3-Apr-06 18:57
protectorChristian Graus3-Apr-06 18:57 
QuestionRead file data when opening from... Pin
Taen_Karth3-Apr-06 15:05
Taen_Karth3-Apr-06 15:05 
AnswerRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 15:09
protectorChristian Graus3-Apr-06 15:09 
GeneralRe: Read file data when opening from... Pin
Taen_Karth3-Apr-06 15:27
Taen_Karth3-Apr-06 15:27 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 15:28
protectorChristian Graus3-Apr-06 15:28 
GeneralRe: Read file data when opening from... Pin
Taen_Karth3-Apr-06 15:33
Taen_Karth3-Apr-06 15:33 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 15:36
protectorChristian Graus3-Apr-06 15:36 
GeneralRe: Read file data when opening from... Pin
Taen_Karth3-Apr-06 15:39
Taen_Karth3-Apr-06 15:39 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 15:42
protectorChristian Graus3-Apr-06 15:42 
GeneralRe: Read file data when opening from... Pin
Taen_Karth3-Apr-06 15:52
Taen_Karth3-Apr-06 15:52 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 16:01
protectorChristian Graus3-Apr-06 16:01 

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.