Click here to Skip to main content
15,913,685 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: INI - read multiline! Pin
User 989707413-Dec-16 1:51
User 989707413-Dec-16 1:51 
GeneralRe: INI - read multiline! Pin
Richard MacCutchan13-Dec-16 5:50
mveRichard MacCutchan13-Dec-16 5:50 
GeneralRe: INI - read multiline! Pin
User 989707413-Dec-16 6:13
User 989707413-Dec-16 6:13 
GeneralRe: INI - read multiline! Pin
Richard MacCutchan13-Dec-16 6:25
mveRichard MacCutchan13-Dec-16 6:25 
GeneralRe: INI - read multiline! Pin
User 989707413-Dec-16 6:34
User 989707413-Dec-16 6:34 
QuestionHow do I make a button to save combobox theme? Pin
Member 1289787210-Dec-16 14:32
Member 1289787210-Dec-16 14:32 
AnswerRe: How do I make a button to save combobox theme? Pin
Richard MacCutchan10-Dec-16 20:50
mveRichard MacCutchan10-Dec-16 20:50 
QuestionLoading a combobox from the selection of a previous combobox in visual basic Pin
CharlesGuru8-Dec-16 22:41
CharlesGuru8-Dec-16 22:41 
AnswerRe: Loading a combobox from the selection of a previous combobox in visual basic Pin
Richard MacCutchan8-Dec-16 23:01
mveRichard MacCutchan8-Dec-16 23:01 
QuestionDownload Web page (aspx) with content / Webclient? Pin
SHCruz8-Dec-16 16:26
SHCruz8-Dec-16 16:26 
QuestionSelect columns access database Pin
Member 128225738-Dec-16 0:08
Member 128225738-Dec-16 0:08 
AnswerRe: Select columns access database Pin
Richard MacCutchan8-Dec-16 1:24
mveRichard MacCutchan8-Dec-16 1:24 
GeneralRe: Select columns access database Pin
Member 128225738-Dec-16 3:36
Member 128225738-Dec-16 3:36 
GeneralRe: Select columns access database Pin
Richard MacCutchan8-Dec-16 3:52
mveRichard MacCutchan8-Dec-16 3:52 
GeneralRe: Select columns access database Pin
Member 128225738-Dec-16 6:28
Member 128225738-Dec-16 6:28 
GeneralRe: Select columns access database Pin
Richard MacCutchan8-Dec-16 6:44
mveRichard MacCutchan8-Dec-16 6:44 
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 

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.