Click here to Skip to main content
15,923,789 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: button + in calc works bad. Pin
Luc Pattyn29-May-10 1:57
sitebuilderLuc Pattyn29-May-10 1:57 
Questioni need a help Pin
Folad System29-May-10 0:01
Folad System29-May-10 0:01 
AnswerRe: i need a help PinPopular
Smithers-Jones29-May-10 11:57
Smithers-Jones29-May-10 11:57 
AnswerRe: i need a help Pin
Kschuler2-Jun-10 10:52
Kschuler2-Jun-10 10:52 
QuestionTracking NewsTicker Pin
police_0104028-May-10 21:09
police_0104028-May-10 21:09 
AnswerRe: Tracking NewsTicker Pin
LloydA11129-May-10 12:31
LloydA11129-May-10 12:31 
QuestionThanks for prior help- next problem- array/collection or class to store/save data Pin
lemarshall27-May-10 14:26
lemarshall27-May-10 14:26 
AnswerRe: Thanks for prior help- next problem- array/collection or class to store/save data Pin
Andy_L_J28-May-10 8:41
Andy_L_J28-May-10 8:41 
Maybe not a bad idea,

Public Class Material

 Private _id As String
 Private _name As String
 Private _value As Double

 Public Property ID() As String
   Get
     Return _id
   End Get
   Set(ByVal value As String)
     _id = value
   End Set
 End Property 

 Public Property Name() As String
   Get
     Return _id
   End Get
   Set(ByVal value As String)
     _id = value
   End Set
 End Property 

 Public Property ID() As String
   Get
     Return _id
   End Get
   Set(ByVal value As String)
     _id = value
   End Set
 End Property 

 Public Sub New(ByVal id As String, ByVal name As String, _
               ByVal value As Double)
   With Me
     ID = id
     Name = name
     Value = value
   End With
 End Sub

End Class


Now if you use your Material Class in a Generic List that you declare as a Form Level variable Public MatList As List(Of Material), you will be able to retreive, and add items to your hearts content. Then when the form closes, save your data, iterating through the items in the MatList

Hope this helps.
I don't speak Idiot - please talk slowly and clearly

'This space for rent'

Driven to the arms of Heineken by the wife

GeneralRe: Thanks for prior help- next problem- array/collection or class to store/save data Pin
lemarshall2-Jun-10 16:36
lemarshall2-Jun-10 16:36 
QuestionCreating label array in vb.net 2007 Pin
lemarshall27-May-10 5:24
lemarshall27-May-10 5:24 
AnswerRe: Creating label array in vb.net 2007 Pin
Luc Pattyn27-May-10 5:39
sitebuilderLuc Pattyn27-May-10 5:39 
GeneralRe: Creating label array in vb.net 2007 Pin
lemarshall27-May-10 6:37
lemarshall27-May-10 6:37 
GeneralRe: Creating label array in vb.net 2007 Pin
Luc Pattyn27-May-10 7:46
sitebuilderLuc Pattyn27-May-10 7:46 
AnswerRe: Creating label array in vb.net 2007 [modified] Pin
William Winner27-May-10 8:21
William Winner27-May-10 8:21 
GeneralRe: Creating label array in vb.net 2007 Pin
lemarshall27-May-10 9:50
lemarshall27-May-10 9:50 
GeneralRe: Creating label array in vb.net 2007 Pin
William Winner27-May-10 10:42
William Winner27-May-10 10:42 
Questionvisual basic 2008 captcha to picture box help Pin
Snipe7627-May-10 2:43
Snipe7627-May-10 2:43 
AnswerRe: visual basic 2008 captcha to picture box help Pin
Henry Minute27-May-10 4:37
Henry Minute27-May-10 4:37 
Question[Need Correction]Class To Load sqlReader into Listview Pin
fenindom27-May-10 2:06
fenindom27-May-10 2:06 
AnswerRe: [Need Correction]Class To Load sqlReader into Listview Pin
Tom Deketelaere27-May-10 2:34
professionalTom Deketelaere27-May-10 2:34 
GeneralRe: [Need Correction]Class To Load sqlReader into Listview Pin
fenindom27-May-10 3:04
fenindom27-May-10 3:04 
AnswerRe: [Need Correction]Class To Load sqlReader into Listview Pin
William Winner27-May-10 8:30
William Winner27-May-10 8:30 
GeneralRe: [Need Correction]Class To Load sqlReader into Listview Pin
fenindom27-May-10 9:19
fenindom27-May-10 9:19 
GeneralRe: [Need Correction]Class To Load sqlReader into Listview Pin
William Winner27-May-10 9:23
William Winner27-May-10 9:23 
GeneralRe: [Need Correction]Class To Load sqlReader into Listview Pin
fenindom27-May-10 9:27
fenindom27-May-10 9:27 

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.