Criel's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
129 (0.1 per day)
Joined:
11-March 11
Profile Views:
2,681
Last Active:
User is offline Aug 12 2014 08:09 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Criel has not set their status

Posts I've Made

  1. In Topic: Can you use .NET without interfacing with COM?

    Posted 24 Jul 2014

    I am trying to look towards getting away from COM, I can't seem to find any useful websites that could give me some information on what I could do to remove them from my program. I am using some COM objects in this legacy application, but .NET could be extremely powerful and I feel that when we are using COM we are not using .NET to it's full potential. What are some of these wrappers?
  2. In Topic: Create a maskedtextbox format based on a string value?

    Posted 12 May 2014

    Would creating a custom control the easiest way to go about this if I'm only going to use the textbox once in the flow?
  3. In Topic: Listview items not updating wpf vb.net

    Posted 9 Apr 2014

    Thanks for your reply

    Here's the code I currently have, I am setting the dataContext property of the listview to the observableCollection which has the entries I want added to the listview

    Public Class ObservableColl
    
        Public Structure Steps
            Private _Steps As List(Of String)
            Property Steps() As List(Of String)
                Get
                    Return _Steps
                End Get
                Set(ByVal value As List(Of String))
                    _Steps = value
                End Set
            End Property
        End Structure
    
        Dim songs As New ObservableCollection(Of Steps)
    
    End Class
    
    
     Private Sub CloseForm()
            Dim stepArr As String() = Split(sCommon.presetSteps, ",")
            Dim entries As New List(Of String)
    
            For i = 0 To stepArr.Count - 1
                entries.Add(stepArr(i))
            Next
    
            sCommon.form1.entries.Add(New Steps With {.Steps = entries}) 'Add list entries to the observableCollection
            sCommon.form1.lvwCurrentSteps.DataContext = entries 'Assign the DataContext property to the observableCollection
    
            If Not PresetList Is Nothing Then 
                Me.Close() 'Close this form and focus returns to the main window
            End If
    
        End Sub
    
    <ListView Margin="49,23,0,33" HorizontalAlignment="Left" Width="230" Name="lvwCurrentSteps" SelectionMode="Multiple" ItemsSource="{Binding}" >
                <ListView.ItemContainerStyle>
                    <Style TargetType="{x:Type ListViewItem}">
                        <Setter Property="BorderBrush" Value="LightGray" />
                        <Setter Property="BorderThickness" Value="0,0,0,1" />
                    </Style>
                </ListView.ItemContainerStyle>
                <ListView.View>
                    <GridView x:Name="myGridView">
                        <GridViewColumn Width="220" Header="Steps to run"  DisplayMemberBinding="{Binding Path=Steps}">
                        </GridViewColumn>                                    
                    </GridView>
                </ListView.View>
            </ListView>
    
    
    


    I can validate that there are items in the listview with this method but the listview doesn't 'refresh' with these values when focus returns to the original window.

    ?sCommon.form1.lvwCurrentSteps.Items.Count
    3
  4. In Topic: Copy 2d array to any other list

    Posted 16 Jan 2014

    I am looking for a 2d list as well. A list meaning any other collection out there that's not an array, so a dictionary/List/Hasttable/HashSet

    Key was just an example of what I could use to search the whole collection, rather than using a for loop. So if I was able to convert it over to a 2d dictionary, I could search the whole dictionary values with just the Key or Value variables which I am hoping to copy over from the 2d array.
  5. In Topic: Copy 2d array to any other list

    Posted 16 Jan 2014

    To a different type of list entirely. What I'm looking for is I'm trying to reduce the amount of for loops I have, and to do that I was going to move the values of the array I originally looped through to find the value, to just be able to search for the key with a dictionary or hashtable hence removing the need to do multiple for loops, only just the one to convert or copy the array to a new list and then use that list from then on. 1d array aren't a problem but I guess i've never ran into this with 2d arrays before :)

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    aleckie Icon

    09 Apr 2014 - 08:46
    hi are you a specialist in c++ ?
Page 1 of 1