Click here to Skip to main content
16,012,316 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionThere must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200726-Jun-07 22:41
MartyK200726-Jun-07 22:41 
AnswerRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MohammadAmiry27-Jun-07 0:41
MohammadAmiry27-Jun-07 0:41 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 1:06
MartyK200727-Jun-07 1:06 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Taylor Kobani27-Jun-07 1:55
Taylor Kobani27-Jun-07 1:55 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 2:04
MartyK200727-Jun-07 2:04 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Dave Kreskowiak27-Jun-07 3:49
mveDave Kreskowiak27-Jun-07 3:49 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 3:53
MartyK200727-Jun-07 3:53 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Dave Kreskowiak27-Jun-07 4:10
mveDave Kreskowiak27-Jun-07 4:10 
For the Person:
Public Class Person
    Private _Name As String
    Private _Title As String
 
    Public Property Name As String
    ...
    Public Property Title As String
    ...
End Class

For the Collection of Persons (simplified)
Public Class PersonsCollection
    Implements IList, ICollection, IEnumerable
 
    Private Persons As Person()
    Private PersonsCount As Integer
 
    Public Sub New()
    End Sub
 
    Public Overridable Sub Add(ByVal person As Person)
       ...
    End Sub
 
    ...
End Class


Of course, in 2005, you can skip the collection and just use a typed collection instead:
Dim Persons As New List(Of Person)




A guide to posting questions on CodeProject[^]

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


GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 4:31
MartyK200727-Jun-07 4:31 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Dave Kreskowiak27-Jun-07 5:01
mveDave Kreskowiak27-Jun-07 5:01 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class [modified] Pin
Taylor Kobani27-Jun-07 6:46
Taylor Kobani27-Jun-07 6:46 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Dave Kreskowiak27-Jun-07 7:09
mveDave Kreskowiak27-Jun-07 7:09 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 21:11
MartyK200727-Jun-07 21:11 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
Dave Kreskowiak28-Jun-07 2:40
mveDave Kreskowiak28-Jun-07 2:40 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200728-Jun-07 3:08
MartyK200728-Jun-07 3:08 
AnswerRe: There must be a better way to enter lots of strongly typed properties in a class Pin
SHatchard27-Jun-07 3:51
SHatchard27-Jun-07 3:51 
GeneralRe: There must be a better way to enter lots of strongly typed properties in a class Pin
MartyK200727-Jun-07 4:04
MartyK200727-Jun-07 4:04 
Questioncolored area in center all way down ? Pin
porsti26-Jun-07 21:57
porsti26-Jun-07 21:57 
AnswerRe: colored area in center all way down ? Pin
Tamimi - Code26-Jun-07 23:10
Tamimi - Code26-Jun-07 23:10 
GeneralRe: colored area in center all way down ? Pin
porsti26-Jun-07 23:55
porsti26-Jun-07 23:55 
Questionc# to vb.net 2005 Pin
Sonia Gupta26-Jun-07 20:12
Sonia Gupta26-Jun-07 20:12 
AnswerRe: c# to vb.net 2005 Pin
Christian Graus26-Jun-07 20:17
protectorChristian Graus26-Jun-07 20:17 
GeneralRe: c# to vb.net 2005 Pin
Sonia Gupta26-Jun-07 21:01
Sonia Gupta26-Jun-07 21:01 
Questionhow to make a button on a datagrid cell... Pin
cutequencher26-Jun-07 19:28
cutequencher26-Jun-07 19:28 
AnswerRe: how to make a button on a datagrid cell... Pin
Rupesh Kumar Swami26-Jun-07 19:38
Rupesh Kumar Swami26-Jun-07 19:38 

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.