Click here to Skip to main content
15,892,480 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need Advice on Storing temporary variables Pin
vbbeg23-Jan-07 16:59
vbbeg23-Jan-07 16:59 
GeneralTried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 14:19
professionalcode-frog23-Jan-07 14:19 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 14:26
protectorChristian Graus23-Jan-07 14:26 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 14:39
professionalcode-frog23-Jan-07 14:39 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 14:49
protectorChristian Graus23-Jan-07 14:49 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 16:32
professionalcode-frog23-Jan-07 16:32 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 16:47
protectorChristian Graus23-Jan-07 16:47 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Dave Doknjas24-Jan-07 13:17
Dave Doknjas24-Jan-07 13:17 
(via Instant VB)

Imports System
Imports System.Collections.Generic

<serializable ()=""> _
Public Class Question
Public QuestionID As String
Public QuestionText As String

Public Sub New()
End Sub

Public Sub New(ByVal id As String, ByVal text As String)
QuestionID = id
QuestionText = text
End Sub
End Class

<serializable ()=""> _
Public Class QuestionOption
Public OptionID As String
Public OptionValue As String

Public Sub New()
End Sub

Public Sub New(ByVal id As String, ByVal value As String)
OptionID = id
OptionValue = value
End Sub
End Class

<serializable ()=""> _
Public Class QuestionList
Inherits List(Of Question)
Public Sub New()
MyBase.New()
End Sub

Public Sub New(ByVal collection As IEnumerable(Of Question))
MyBase.New(collection)
End Sub

Public Sub New(ByVal capacity As Int32)
MyBase.New(capacity)
End Sub
End Class

<serializable ()=""> _
Public Class QuestionOptionList
Inherits List(Of QuestionOption)
Public Sub New()
MyBase.New()
End Sub

Public Sub New(ByVal collection As IEnumerable(Of QuestionOption))
MyBase.New(collection)
End Sub

Public Sub New(ByVal capacity As Int32)
MyBase.New(capacity)
End Sub
End Class


David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: C# to Python converter, VB to Python converter

GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog24-Jan-07 13:19
professionalcode-frog24-Jan-07 13:19 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Dave Doknjas24-Jan-07 13:32
Dave Doknjas24-Jan-07 13:32 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog31-Jan-07 13:35
professionalcode-frog31-Jan-07 13:35 
QuestionEncapsulation problem. Pin
cstrader23223-Jan-07 10:40
cstrader23223-Jan-07 10:40 
AnswerRe: Encapsulation problem. Pin
Christian Graus23-Jan-07 10:59
protectorChristian Graus23-Jan-07 10:59 
GeneralRe: Encapsulation problem. Pin
cstrader23223-Jan-07 12:13
cstrader23223-Jan-07 12:13 
GeneralRe: Encapsulation problem. Pin
Christian Graus23-Jan-07 12:19
protectorChristian Graus23-Jan-07 12:19 
GeneralRe: Encapsulation problem. Pin
TwoFaced23-Jan-07 13:19
TwoFaced23-Jan-07 13:19 
GeneralRe: Encapsulation problem. Pin
cstrader23223-Jan-07 14:28
cstrader23223-Jan-07 14:28 
GeneralRe: Encapsulation problem. Pin
cstrader23224-Jan-07 2:22
cstrader23224-Jan-07 2:22 
GeneralRe: Encapsulation problem. Pin
TwoFaced24-Jan-07 6:31
TwoFaced24-Jan-07 6:31 
GeneralRe: Encapsulation problem. Pin
cstrader23224-Jan-07 12:03
cstrader23224-Jan-07 12:03 
QuestionDataGridView RowState Issue Pin
nlindley723-Jan-07 10:22
nlindley723-Jan-07 10:22 
QuestionDatabases Pin
jady8423-Jan-07 7:52
jady8423-Jan-07 7:52 
AnswerRe: Databases Pin
Dave Kreskowiak23-Jan-07 9:06
mveDave Kreskowiak23-Jan-07 9:06 
GeneralRe: Databases Pin
jady8423-Jan-07 12:31
jady8423-Jan-07 12:31 
GeneralRe: Databases Pin
Dave Kreskowiak23-Jan-07 12:49
mveDave Kreskowiak23-Jan-07 12:49 

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.