Click here to Skip to main content
15,890,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProgressbar feedback (one fill another) Pin
SHCruz5-Dec-16 22:49
SHCruz5-Dec-16 22:49 
QuestionRe: Progressbar feedback (one fill another) Pin
CHill606-Dec-16 5:08
mveCHill606-Dec-16 5:08 
AnswerRe: Progressbar feedback (one fill another) Pin
SHCruz7-Dec-16 11:59
SHCruz7-Dec-16 11:59 
QuestionVB.net - Index was out of range. Must be non-negative and less than the size of the collection Listview Pin
Abung Salman2-Dec-16 16:46
Abung Salman2-Dec-16 16:46 
QuestionRe: VB.net - Index was out of range. Must be non-negative and less than the size of the collection Listview Pin
Richard MacCutchan2-Dec-16 22:04
mveRichard MacCutchan2-Dec-16 22:04 
AnswerDon't post your question in multiple forums Pin
Dave Kreskowiak3-Dec-16 3:26
mveDave Kreskowiak3-Dec-16 3:26 
AnswerRe: VB.net - Index was out of range. Must be non-negative and less than the size of the collection Listview Pin
Richard Deeming5-Dec-16 2:00
mveRichard Deeming5-Dec-16 2:00 
QuestionQuestion about Class Interaction Pin
hilli_micha1-Dec-16 10:32
hilli_micha1-Dec-16 10:32 
I'm having a small issue wrapping my head around why this isn't working.

I have a file in my project called CollectionClasses.vb - within the Solution Explorer it's located in ProjectBase\Utilities\CollectionClasses.vb. Within that file, I've got classes that do not have Namespaces attached to them , they look like this.

VB
Public Class LinerTypesCollection
        Inherits System.Collections.ObjectModel.ObservableCollection(Of String)

        Public Sub New(ByVal IsMetric As Boolean)

           ' Do stuff
           
        End Sub
   End Class


Now, I've got a file within my project called StartPanel.vb, it is located ProjectBase\UI\Fitting Panels\Start\StartPanel.vb that has a Partial Class that uses the class defined above

VB
Namespace Base.Controls.Panels
    Partial Public Class StartPanel
        Public Sub New (ByVal bool as Boolean, Optional ByVal bool2 as Boolean = false)

            ' This works.
            cmbBox.ItemsSource = New LinerTypesCollection(False)
        End Sub
    End Class
End Namespace


I am also trying to utilize this LinerTypesCollection class in another part of my software within a Public Class, like so, but unfortunately, I'm stuck in a rut, possibly over something simple, as to trying to figure out why. While trying to use LinerTypesCollection within my second class, it just won't show up. This class is located in the following location ProjectBase\UI\Primatives\ConnectionOptions.vb

VB
Namespace Base.Utilities
    Public Class ConnectionOption
        Public Sub New (ByVal IsMetric as Boolean)

            ' This does not work. I cannot get IntelliSense to acknowledge that LinerTypesCollection exists.
            cmbBox.ItemsSource = New LinerTypesCollection(False)
        End Sub
    End Class
End Namespace


I have tried to change the "Base.Utilities" to "Base.Controls.Panels" to match and no avail, any ideas?

Thanks!
AnswerRe: Question about Class Interaction Pin
Richard Deeming1-Dec-16 11:00
mveRichard Deeming1-Dec-16 11:00 
GeneralRe: Question about Class Interaction Pin
hilli_micha1-Dec-16 11:10
hilli_micha1-Dec-16 11:10 
GeneralRe: Question about Class Interaction Pin
Richard Deeming1-Dec-16 11:18
mveRichard Deeming1-Dec-16 11:18 
GeneralRe: Question about Class Interaction Pin
hilli_micha2-Dec-16 18:38
hilli_micha2-Dec-16 18:38 
QuestionConvert VB to C# Pin
Pavlex429-Nov-16 7:00
Pavlex429-Nov-16 7:00 
AnswerRe: Convert VB to C# Pin
Wendelius29-Nov-16 7:25
mentorWendelius29-Nov-16 7:25 
GeneralRe: Convert VB to C# Pin
Pavlex429-Nov-16 8:05
Pavlex429-Nov-16 8:05 
GeneralRe: Convert VB to C# Pin
Wendelius29-Nov-16 8:22
mentorWendelius29-Nov-16 8:22 
SuggestionRe: Convert VB to C# Pin
Richard Deeming29-Nov-16 9:26
mveRichard Deeming29-Nov-16 9:26 
GeneralRe: Convert VB to C# Pin
Jon McKee2-Dec-16 17:02
professionalJon McKee2-Dec-16 17:02 
AnswerRe: Convert VB to C# Pin
Eddy Vluggen29-Nov-16 10:11
professionalEddy Vluggen29-Nov-16 10:11 
GeneralRe: Convert VB to C# Pin
Pavlex430-Nov-16 1:37
Pavlex430-Nov-16 1:37 
GeneralRe: Convert VB to C# Pin
Eddy Vluggen30-Nov-16 3:16
professionalEddy Vluggen30-Nov-16 3:16 
GeneralRe: Convert VB to C# Pin
Pavlex430-Nov-16 3:44
Pavlex430-Nov-16 3:44 
GeneralRe: Convert VB to C# Pin
Eddy Vluggen30-Nov-16 4:14
professionalEddy Vluggen30-Nov-16 4:14 
GeneralRe: Convert VB to C# Pin
Pavlex430-Nov-16 4:16
Pavlex430-Nov-16 4:16 
GeneralRe: Convert VB to C# Pin
Eddy Vluggen30-Nov-16 4:26
professionalEddy Vluggen30-Nov-16 4:26 

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.